cdsframework / ice

Immunization Calculation Engine (ICE) Service
https://cdsframework.atlassian.net/wiki/spaces/ICE/overview
Other
12 stars 9 forks source link

Cross build docker images to ARM64 platform #44

Open rjhancock opened 2 years ago

rjhancock commented 2 years ago

To allow for deployment and testing on M Series Apple devices as well as ARM64 Linux servers, cross build the ICE docker images with support for the ARM64 architecture.

OpenJDK already supports it so building should be a simple change to the build scripts to support cross platform building.

darylbc commented 2 years ago

Thanks for the suggestion. Makes sense. We'll look into adding this to the distribution.

rjhancock commented 2 years ago

To simplify this as I do this with another project, change the first part of the docker build line to be docker buildx build --platform=linux/amd64,linux/arm64 with whatever platforms that JDK supports and it should build accordingly.