Support multiarch builds to run on other architectures e.g. Raspberry Pi #58
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note: This depends on the image nimmis/ubuntu being rebuilt with multiarch support. I've tested that it can build but not if it runs.
This uses docker buildx and manifest lists to build a multiple versions of an image
for different systems which appear as a single image on the docker hub.
This allows clients to select the right version automatically.
Changes:
Possible problems:
I can't quite test this without your ubuntu image being multiarch but my fork which depends on debian allows the server to run on a 32 bit Raspberry Pi.
Java install in the docker file only is affected by the major version variable now. I don't know if the minor versions are necessary. Otherwise not installing java during the build also works as the client can download a copy.
The architecture aarch64 isn't tested as I don't have access to a machine to see the lscpu output. It seems like it should output "armv8".