https://github.com/2tefan/multiarch-test
2.2K
This is a little test program to test compiling for various cpu architectures, such as amd64 or aarch64.
The continuous integration software (I currently use circleCI) will automaticly build the docker image for all platforms, that are possible:
This version will get the tag buildx, because as already the name amplies, it was build with buildx.
But wait there is more, if you don't want to use buildx, you can also "manually" build the Dockerfile for all platforms, that you desire.
Just use build.sh. It will use the platform you are currently on and build the Dockerfile for it, but this means you have to build your project on every platform you want to use it on. This will get the tag test- and all platforms are combined under test.
Currently only x86 and aarch64 are supported, but feel free to extend it.
Just pull the image from docker: 2tefan/multiarch-test. The test tag is the dockerfile build without buildx and buildx is build with buildx.
docker run 2tefan/multiarch-test:buildx
Content type
Image
Digest
Size
708.4 kB
Last updated
about 6 years ago
docker pull 2tefan/multiarch-test:buildx