Coder Social home page Coder Social logo

Should support arm64 about deno_docker HOT 10 OPEN

zz avatar zz commented on April 28, 2024 30
Should support arm64

from deno_docker.

Comments (10)

benatkin avatar benatkin commented on April 28, 2024 6

Hmm, recommendation here is to use a third party image. Same as how the alpine build is based on a third party image.

I'd like to see alpine removed from the official docker repository and arm64 builds added. That way those interested in using "The easiest, most secure JavaScript runtime" can be steered into using official images that are based only on official images.

from deno_docker.

LukeChannings avatar LukeChannings commented on April 28, 2024 5

@zz if you're still interested, I have an ARM64 multi-arch image here: https://github.com/LukeChannings/docker-deno (lukechannings/deno on DockerHub)

from deno_docker.

comunidadio avatar comunidadio commented on April 28, 2024 4

+1

It would be great to have official arm64 builds available as the architecture is getting more popular, both for development (recent Macbooks) and for servers (graviton etc).

from deno_docker.

LukeChannings avatar LukeChannings commented on April 28, 2024 1

Hey @hayd,

The --platform argument is for compiling x86/x86_64/aarch64, etc. It won't cross-compile for Windows/Darwin.

I push the artefact to the release so that the deno binary can be downloaded independently, since there is not yet an official aarch64 builds.

Of course, aarch64 builds of 1.7.0 aren't available atm because rusty_v8 isn't available yet and I've had trouble compiling it manually.

from deno_docker.

theomessin avatar theomessin commented on April 28, 2024 1

Any update on this?

from deno_docker.

hayd avatar hayd commented on April 28, 2024

Wow, that's great @LukeChannings .

So this (more or less) "just works" if you pass the --platform argument? Am I reading that correctly?

https://github.com/LukeChannings/docker-deno/blob/c4401697918050fd5a1f91ca3b21d7fcd62c5eea/.github/workflows/build-deno.yaml#L46

Is there a reason to do it like you do (downloading from releases) rather than as a multi-step?

from deno_docker.

seanaye avatar seanaye commented on April 28, 2024

Is there any update on this? I need to deploy Deno >= 1.12 in production and I'm having difficulty testing locally on my arm64 machine

from deno_docker.

hayd avatar hayd commented on April 28, 2024

The --platform argument is for compiling x86/x86_64/aarch64, etc. It won't cross-compile for Windows/Darwin.

I guess I never followed this, does this mean we wouldn't be able to build aarch64 on the denoland's ubuntu-large in CI?

That said, my suspicion is that maintaining arm64 will be much more palatable once there is native support for arm64 in GitHub actions (azure). Until then it's unlikely denoland will be able to maintain it. Though.. I don't speak for the team that is just my hunch.


The latest is that @LukeChannings is still maintaining https://github.com/LukeChannings/deno-arm64
and building arm64 binaries 💪

from deno_docker.

felipecrs avatar felipecrs commented on April 28, 2024

I believe the current best way of handling this is by doing something like:

https://github.com/docker/build-push-action/blob/master/docs/advanced/multi-platform.md

from deno_docker.

loeffel-io avatar loeffel-io commented on April 28, 2024

+1

from deno_docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.