Support cross platform docker image build
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
docker run --privileged --rm tonistiigi/binfmt --install all
docker buildx create --name host --use --buildkitd-flags '--allow-insecure-entitlement network.host'
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
return to databend root directory
make dockerx PLATFORM=<platform your host machine supports>