mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
0d7e118f01
With this change we can run a Docker build in QEMU and build ARM or ARM64 binaries directly on an Intel build machine. This feature already supports building with Docker4Mac (Beta31). So it's easy for a developer to compile and test the Docker binaries locally on his dev machine w/o the need of the target hardware. Another use case would be to run builds on a clound CI like Travis to get an instant feedback loop for PR's, all on a common Intel platform w/o the need to set up the CI system on the target hardware. Usage: build static Docker binaries for ARM 32-bit ``` DOCKER_ENGINE_OSARCH="linux/arm" make binary ``` Usage: build static Docker binaries for ARM64 aka AARCH64 ``` DOCKER_ENGINE_OSARCH="linux/arm64" make binary ``` Signed-off-by: Dieter Reuter <dieter.reuter@me.com> |
||
---|---|---|
.. | ||
.build-deb | ||
.build-rpm | ||
.resources-windows | ||
.binary | ||
.binary-setup | ||
.detect-daemon-osarch | ||
.ensure-emptyfs | ||
.go-autogen | ||
.go-autogen.ps1 | ||
.integration-daemon-setup | ||
.integration-daemon-start | ||
.integration-daemon-stop | ||
.integration-test-helpers | ||
binary | ||
binary-client | ||
binary-daemon | ||
build-deb | ||
build-integration-test-binary | ||
build-rpm | ||
clean-apt-repo | ||
clean-yum-repo | ||
cover | ||
cross | ||
dynbinary | ||
dynbinary-client | ||
dynbinary-daemon | ||
generate-index-listing | ||
install-binary | ||
install-binary-client | ||
install-binary-daemon | ||
install-script | ||
README.md | ||
release-deb | ||
release-rpm | ||
run | ||
sign-repos | ||
test-deb-install | ||
test-docker-py | ||
test-install-script | ||
test-integration-cli | ||
test-integration-shell | ||
test-old-apt-repo | ||
test-unit | ||
tgz | ||
ubuntu | ||
update-apt-repo | ||
win |
This directory holds scripts called by make.sh
in the parent directory.
Each script is named after the bundle it creates. They should not be called directly - instead, pass it as argument to make.sh, for example:
./hack/make.sh test
./hack/make.sh binary ubuntu
# Or to run all bundles:
./hack/make.sh
To add a bundle:
- Create a shell-compatible file here
- Add it to $DEFAULT_BUNDLES in make.sh