searchcode-server icon indicating copy to clipboard operation
searchcode-server copied to clipboard

Multiarch docker images

Open yhaenggi opened this issue 5 years ago • 3 comments

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

yhaenggi avatar Apr 29 '20 12:04 yhaenggi

Got an examples of this?

boyter avatar Apr 29 '20 23:04 boyter

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.

yhaenggi avatar Apr 30 '20 11:04 yhaenggi

https://github.com/boyter/searchcode/issues/35

boyter avatar Sep 28 '20 01:09 boyter