-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement: prebuilt binaries for linux-arm64 and linuxmusl-arm64 #48
Comments
Please do 🙏 Got Getting this prebuild-install warning:
|
You're getting this because you're using Docker. Native Apple Silicon prebuilt binary exists. You can either bundle build tools in your image for Linux or straight up use MacOS instead. (for the time being, of course) |
@busybox11 Thanks for the response 🙏 I use Docker in production (built & running on linux amd64, working just fine there 👍). I just can't build the image locally to verify it works, which is not a blocker. I suppose I could also install python and other dependencies in the image as a temporary workaround, but again, it builds fine on target environment, so that would be a waste. Use Docker they said. No more "works on my machine" they said. 🤷♂️ |
Yes, this is what i meant! I also had to add C++ / Python build tools in my Docker image to build my Node project. But now it works flawlessly on my ARM CI server. And I also have a cache of the built deps so that I don't have to rebuild every time, I only lose like 2-3 seconds per build compared to before. It's not a big deal, although a little annoying indeed. To be fair, it's not Docker's fault! It works as expected in this case, it doesn't work on Linux ARM, it won't work on any other Linux ARM out of the box either haha. At least it makes it replicable in a barebones environment like an Alpine image. Now that I think of it you could run the Docker build by specifying the |
Yes, this was unexpected, and I created this issue in response to learning of this new dependee. |
This comment was marked as duplicate.
This comment was marked as duplicate.
In case others are looking for the same issue: In my case the |
@lhermann The regular It is not using prebuilt binaries, which will have a hit on Docker image build speed and performance use - which are important when billed by usage, on GH Actions for instance. Although yes, to be fair, you won't have anything special to do on the regular |
Future possible enhancement to provide prebuilt binaries for Linux (glibc and musl) running on ARM64.
CircleCI can be used for this purpose e.g. https://github.com/lovell/sharp/blob/main/.circleci/config.yml
I don't have any immediate plans to work on this particular task so if anyone requires this urgently then I am available for paid consulting. Anyone wishing to support open source software development by purchasing 1 day of my time to work on this task is very welcome to do so via https://buy.stripe.com/6oE00r1Qe7sgeli6oR - thanks in advance.
The text was updated successfully, but these errors were encountered: