boyter / searchcode-server

The offical home of searchcode-server where you can run searchcode locally. Note that master is generally unstable in the sense that it is not a release. Check releases for release versions https://github.com/boyter/searchcode-server/releases
https://searchcodeserver.com/
Other
367 stars 94 forks source link

Multiarch docker images #218

Open yhaenggi opened 4 years ago

yhaenggi commented 4 years ago

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

boyter commented 4 years ago

Got an examples of this?

yhaenggi commented 4 years ago

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 commented 4 years ago

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