You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Make + Docker: Implement arm64 & amd64 native images
This PR updates the Docker image such that it can be
successfully built and used as either a linux/amd64 image
or a linux/amd64 image.
The Makefile has been given a new `buildx` command to utilise
Docker's multi-platorm building capability to build and push (!!!)
both images.
This is separate from the `build` command as since one of the arch's
will be compiled under emulation, and therefore `buildx` can take a
long time to complete (took ~2h on my 8 core old gaming laptop).
Some other things added along the way:
* Makefile take REPOSITORY and TAG arguments, such that
building local images and testing is easier to do.
Out of scope:
* Haven't integrated it with GitHub actions, as I'm not that
familiar with it, but figured this was a good first step.
Known issues:
* For arm64 images, can't get linux-musl test in `make test` to pass.
Wondering if we need to explicitly install the amd64 version via apt?
Have yet to experiment. Cross compiling to `x86_64-apple-darwin`
works perfectly though on arm64 host.
Work on #12
* Review: Get musl tests working.
* Support for aarch64-apple-darwin
Resolves#12
0 commit comments