Open yhaenggi opened 4 years ago
Got an examples of this?
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.
Could you please provide multiarch containers (docker manifest) for amd64, arm and aarch64? Currently its only amd64.