moby/hack/make
Djordje Lukic 9e5b86f647
Use process substitution to redirect to tee
In some cases, when the daemon launched by a test panics and quits, the
cleanup code would end with an error when trying to kill it by its pid.
In those cases the whole suite will end up waiting for the daemon that
we start in .integration-daemon-start to finish and we end up waiting 2
hours for the CI to cancel after a timeout.

Using process substitution makes the integration tests quit.

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
(cherry picked from commit 3d8b8dc09a)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-01-24 09:57:27 +01:00
..
.binary hack/make/.binary: use with-go-mod.sh 2023-08-13 22:21:31 +02:00
.build-empty-images hack: Rename .ensure-emptyfs to .build-empty-images 2023-05-25 09:48:58 +02:00
.go-autogen hack: display build cmd when DOCKER_DEBUG set 2023-01-19 21:33:39 +01:00
.go-autogen.ps1 use go-winres for windows build and cleanup autogen and winresources 2022-04-14 19:52:36 +02:00
.install Fixup libnetwork lint errors 2021-06-01 23:48:32 +00:00
.integration-daemon-start remove Dockerfile.e2e 2023-08-21 14:02:49 -06:00
.integration-daemon-stop run shfmt 2020-03-03 12:27:49 +09:00
.integration-test-helpers test: use info from the version endpoint for arch checks 2024-01-24 09:50:19 +01:00
.mkwinres hack: remove version from binaries, and remove symlinks 2022-07-02 16:57:51 +02:00
binary Move proxy build into hack/make 2021-06-01 22:14:06 +00:00
binary-daemon hack: restore copy_binaries func 2023-01-05 13:21:28 +01:00
binary-proxy hack: do not set buildmode pie for statically linked binary 2023-01-01 18:03:02 +01:00
dynbinary Move proxy build into hack/make 2021-06-01 22:14:06 +00:00
dynbinary-daemon hack: remove unnecessary vars in make.sh script 2023-01-19 21:33:38 +01:00
dynbinary-proxy hack: remove unnecessary vars in make.sh script 2023-01-19 21:33:38 +01:00
install-binary hack: stop installing containerd-shim (io.containerd.runtime.v1.linux) 2022-06-05 18:41:44 +09:00
install-proxy Fixup libnetwork lint errors 2021-06-01 23:48:32 +00:00
README.md Remove test-unit from hack/make 2017-07-17 11:39:33 -04:00
run Disable tls when launching dockerd through hack/make.sh 2023-07-15 00:58:32 +02:00
test-docker-py Use process substitution to redirect to tee 2024-01-24 09:57:27 +01:00
test-integration Use process substitution to redirect to tee 2024-01-24 09:57:27 +01:00
test-integration-flaky run shfmt 2020-03-03 12:27:49 +09:00
test-integration-shell remove Dockerfile.e2e 2023-08-21 14:02:49 -06: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