Skip to content
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

Multiarch docker images #218

Open
yhaenggi opened this issue Apr 29, 2020 · 3 comments
Open

Multiarch docker images #218

yhaenggi opened this issue Apr 29, 2020 · 3 comments

Comments

@yhaenggi
Copy link

Could you please provide multiarch containers (docker manifest) for amd64, arm and aarch64? Currently its only amd64.

@boyter
Copy link
Owner

boyter commented Apr 29, 2020

Got an examples of this?

@yhaenggi
Copy link
Author

yhaenggi commented Apr 30, 2020

You can use docker buildx https://docs.docker.com/buildx/working-with-buildx/ or do it yourself (and not depend on too new features, didnt work well for me) with qemu like https://github.com/yhaenggi/openttd-docker.

This requires that your base image is already multiarch, so you should use one of these:
https://hub.docker.com/_/adoptopenjdk (is eclipse really needed)?
https://hub.docker.com/_/openjdk

After you've built all the seperate images, you create a manifest that refers to each arch. Then docker will automatically pull the correct arch image for the local machine.

If you want to inspect a image yourself, you can do it like this: docker manifest inspect openjdk
In case of multiarch, you would see manifests per arch and not docker layers.

You can have 1 dockerfile and parameterize it, or create one per arch.

@boyter
Copy link
Owner

boyter commented Sep 28, 2020

boyter/searchcode#35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants