Skip to content

Files

Latest commit

adb071b · Jul 6, 2022

History

History
This branch is 17671 commits behind databendlabs/databend:main.

docker

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 6, 2022
Oct 6, 2021
Apr 22, 2022
Mar 31, 2022
Jun 18, 2022
Jun 22, 2022
Jun 22, 2022
May 31, 2022
Dec 17, 2021
Jun 9, 2022

Multi-architecture Docker image support

Support cross platform docker image build

How to use

Install docker Buildkit

For macOS

brew install buildkit

For linux

docker run --name buildkit -d --privileged -p 1234:1234 moby/buildkit --addr tcp://0.0.0.0:1234
export BUILDKIT_HOST=tcp://0.0.0.0:1234
docker cp buildkit:/usr/bin/buildctl /usr/local/bin/
buildctl build --help

Check on available platforms given your host machine

docker run --privileged --rm tonistiigi/binfmt --install all

Build and push container for supported platforms

initialize host networking

docker buildx create --name host --use --buildkitd-flags '--allow-insecure-entitlement network.host'

update qemu static link

 docker run --rm --privileged multiarch/qemu-user-static --reset -p yes

build with given buildx builder

return to databend root directory

make dockerx PLATFORM=<platform your host machine supports>