Hi, I would like to suggest a change to the makefile in the /containers folder.
The way the file is written, when you build images on an ARM instruction set machine, such as a Mac with an Apple silicon processor (e.g. M3 Pro) the docker engine aligns and tends to download versions you applications on an arm64 basis (e.g. when apt-get install -y --no-install-recommends openjdk-17-jre-headless happens).
Doing so creates 2 problems:
It installs dependencies in non-canonical paths;
Uses arm-based software but then it will have to run on an x86/64-based k8s cluster.
That is why it is worth adding these lines to the Makefile:
Hi, I would like to suggest a change to the makefile in the
/containers
folder.The way the file is written, when you build images on an ARM instruction set machine, such as a Mac with an Apple silicon processor (e.g. M3 Pro) the docker engine aligns and tends to download versions you applications on an arm64 basis (e.g. when apt-get install -y --no-install-recommends openjdk-17-jre-headless happens).
Doing so creates 2 problems:
That is why it is worth adding these lines to the Makefile:
This way we force docker/podman to use x86 instructions instead of arm instructions.
I solved the problem this way. I hope I was helpful.
Max