-
Notifications
You must be signed in to change notification settings - Fork 86
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
docker-compose.yml
does not work on m1 macs
#4369
Comments
So ran an image to get access to the filesystem on the container, and attempted to run From a quick google, this means the jre is incompatible with the underlying chip architecture. https://mkyong.com/java/bash-usr-bin-java-cannot-execute-binary-file-exec-format-error/ I don't really understand how this can be the case though as I built this image locally on my m1 mac and am attempting to run it locally on m1 mac. For remotely built images, this is likely an issue as I'm guessing CI machines are x86, which means the jre built by
|
Posted a SO question to hopefully get some help: https://stackoverflow.com/questions/72521555/arm64-docker-image-built-on-arm64-machine-m1-does-not-create-java-runtime-corr |
This seems to be the root cause, the runtime linker used by |
Unfortunately it seems that linux/arm64 runners are not likely to come to github actions anytime soon: actions/runner-images#2536 It also doesn't look like native m1 support will be added to github actions anytime soon: |
SummaryBuilding jre with
|
Documentation on how to self host github runners: https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners |
Docker portion is fixed, native m1 mac is now tracked by this issue: #4383 |
Tested on 0a0fc92
Here is the corresponding docker image
https://hub.docker.com/layers/227603796/bitcoinscala/bitcoin-s-server/1.9.1-75-0a0fc92f-SNAPSHOT/images/sha256-60861248ea4c099877fa04fee732332e4e6640d1ef7de57cdf79d4a9d042eda9?context=repo
The image constantly says "No java detected"
My am64 linux machine works fine on the same docker image.
The text was updated successfully, but these errors were encountered: