Enabling autolock makes the swarm node renew its TLS certificate. When the test's teardown force-leaves the swarm while that renewal is still writing to /var/lib/docker/swarm/certificates, removing the swarm state fails with "unlinkat /var/lib/docker/swarm/certificates: directory not empty". The encrypted state stays on disk, so the next test's swarm init fails with "Swarm is encrypted and needs to be unlocked", and docker-py's force_leave_swarm helper hides the failed leave. On this branch the victim is test_init_swarm_with_ca_config, which runs right after test_init_swarm_with_autolock_managers. Skip the two tests that enable autolock until the race is fixed. Signed-off-by: Cory Snider <csnider@mirantis.com> (cherry picked from commit01958e5137) Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com> (cherry picked from commitfc04cade92) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
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