mirror of
https://github.com/willfarrell/docker-autoheal.git
synced 2024-12-06 19:16:20 +01:00
5b99d0280f
Updated Dockerfile and scripts with some of the latest PR's, and work from tylerpace. Adding a few files back from original repo such as tests and github workflow. Co-Authored-By: Tyler Pace <4195596+tylerpace@users.noreply.github.com>
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)