1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/hack/make
Kir Kolyshkin 17708e72a7 graphdriver: custom build-time priority list
Add a way to specify a custom graphdriver priority list
during build. This can be done with something like

  go build -ldflags "-X github.com/docker/docker/daemon/graphdriver.priority=overlay2,devicemapper"

As ldflags are already used by the engine build process, and it seems
that only one (last) `-ldflags` argument is taken into account by go,
an envoronment variable `DOCKER_LDFLAGS` is introduced in order to
be able to append some text to `-ldflags`. With this in place,
using the feature becomes

  make DOCKER_LDFLAGS="-X github.com/docker/docker/daemon/graphdriver.priority=overlay2,devicemapper" dynbinary

The idea behind this is, the priority list might be different
for different distros, so vendors are now able to change it
without patching the source code.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2017-11-16 19:43:34 -08:00
..
.resources-windows
.binary graphdriver: custom build-time priority list 2017-11-16 19:43:34 -08:00
.binary-setup
.detect-daemon-osarch Remove Dockerfile.solaris reference 2017-11-01 16:26:29 +00:00
.ensure-emptyfs Protect images in the integration/ suite 2017-08-09 11:02:57 -04:00
.go-autogen Update libcontainerd to use containerd 1.0 2017-10-20 07:11:37 -07:00
.go-autogen.ps1
.integration-daemon-setup Cleanup test output, and binaries. 2017-08-09 11:02:57 -04:00
.integration-daemon-start Remove config tests, which are now unit tests in docker/cli 2017-08-18 14:24:52 -04:00
.integration-daemon-stop Cleanup test output, and binaries. 2017-08-09 11:02:57 -04:00
.integration-test-helpers Fix .go-autogen warnings 2017-11-01 12:03:32 +01:00
binary
binary-daemon
build-integration-test-binary Fix .go-autogen warnings 2017-11-01 12:03:32 +01:00
cross
dynbinary
dynbinary-daemon
install-binary Remove packaging scripts 2017-10-31 18:37:05 -04:00
README.md
run
test-docker-py
test-integration Fix .go-autogen warnings 2017-11-01 12:03:32 +01:00
test-integration-cli Cleanup test output, and binaries. 2017-08-09 11:02:57 -04:00
test-integration-shell Protect images in the integration/ suite 2017-08-09 11:02:57 -04:00

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 binary ubuntu

# Or to run all default bundles:
./hack/make.sh

To add a bundle:

  • Create a shell-compatible file here
  • Add it to $DEFAULT_BUNDLES in make.sh