Skip to content

Conversation

jherrma
Copy link
Contributor

@jherrma jherrma commented Nov 3, 2022

This pull requests adds multiarch setup to the Dockerfile. The image is built for amd64, arm64 and riscv64.

In order to build it locally you might have to setup a multiarch environment:

$ docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
$ docker buildx create --name multiarch --driver docker-container --use
$ docker buildx inspect --bootstrap

@kylemanna
Copy link
Owner

This is pretty awesome, thanks for sharing!

@kylemanna kylemanna merged commit 7325982 into kylemanna:master Nov 5, 2022
kylemanna added a commit that referenced this pull request Nov 28, 2022
* Fix bugs introduced by #103
* Add missing dependency for `libatomic1` which is need at least by `riscv64`

Build command:

    docker buildx build --platform linux/arm64,linux/amd64,linux/riscv64 --pull .
    image=test
    docker buildx build --platform linux/amd64 -t $image --load .
    docker run --rm -it $image --version
kylemanna added a commit that referenced this pull request Nov 28, 2022
* Fix bugs introduced by #103
* Add missing dependency for `libatomic1` which is need at least by `riscv64`

Build command:

    docker buildx build --platform linux/arm64,linux/amd64,linux/riscv64 --pull .
    image=test
    docker buildx build --platform linux/amd64 -t $image --load .
    docker run --rm -it $image --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants