moby/hack/make
Albin Kerouanton 4f47013feb
api: Validate IPAM config before creating a network
Currently, IPAM config is never validated by the API. Some checks
are done by the CLI, but they're not exhaustive. And some of these
misconfigurations might be caught early by libnetwork (ie. when the
network is created), and others only surface when connecting a container
to a misconfigured network. In both cases, the API would return a 500.

Although the `NetworkCreate` endpoint might already return warnings,
these are never displayed by the CLI. As such, it was decided during a
maintainer's call to return validation errors _for all API versions_.

Signed-off-by: Albin Kerouanton <albinker@gmail.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-08-22 17:11:54 +02:00
..
.binary hack/make/.binary: use with-go-mod.sh 2023-07-17 10:38:12 -06:00
.build-empty-images hack: Rename .ensure-emptyfs to .build-empty-images 2023-05-23 15:50:35 +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 Put integration daemon socket in /run 2023-07-05 23:13:08 +00:00
.integration-daemon-stop run shfmt 2020-03-03 12:27:49 +09:00
.integration-test-helpers Merge pull request #46168 from vvoland/hack-integrationcli-dont-failfast 2023-08-09 13:43:43 +02: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-09 22:26:07 +02:00
test-docker-py api: Validate IPAM config before creating a network 2023-08-22 17:11:54 +02:00
test-integration remove Dockerfile.e2e 2023-05-29 11:03:48 +02:00
test-integration-flaky run shfmt 2020-03-03 12:27:49 +09:00
test-integration-shell remove Dockerfile.e2e 2023-05-29 11:03:48 +02: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