mirror of
https://github.com/willfarrell/docker-autoheal.git
synced 2024-12-06 19:16:20 +01:00
da333f55b1
on CI servers where multiple docker containers run we might not want to restart docker containers from other builds running in parallel
579 B
579 B
Docker Autoheal Tests
Docker Compose is used to build and deploy test environment.
test.sh waits on watch-autoheal exit code.
Currently setup to a very basic exit 1 on invalid restart and exit 0 on valid restart.
Run tests
cd tests
./tests.sh
Run tests in CI
cd tests
export "AUTOHEAL_CONTAINER_LABEL=autoheal-123456"
./tests.sh "MY_UNIQUE_BUILD_NUMBER_123456"
This enables the tests to only restart containers within the test spec by using unique docker-compose project names and autoheal labels (as long as you replace 123456 by a unique number)