-
Notifications
You must be signed in to change notification settings - Fork 111
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
Support cross-building / buildx #129
Comments
If you run
Prior to this you need QEMU binaries you can get this via docker:
And you'll need to setup and use a new instance:
It is best to use |
Hi @andrewhibbert It seems that the steps of |
Sorry ignore this I've ended up using https://github.com/sbt/sbt-native-packager, see sbt/sbt-native-packager#1527. There is an example in https://github.com/sbt/sbt-native-packager/blob/master/test-project-docker/build.sbt |
@marcuslonnberg Do you have any tips for me about what a good approach can be? Then I can try to create a PR for that |
@nik-kashi An approach to address this would be to extend the parseImageId function with another regexp that it can use to match and extract the Docker image ID. A PR would be welcomed 🙂 |
We want to publish Docker images for both x64 and arm64. Looks like sbt-native-packager added this in sbt/sbt-native-packager#1527 - seems to mostly be a matter of shelling out to docker buildx instead of docker build, with some other args?
The text was updated successfully, but these errors were encountered: