watchtower/scripts/dependency-test.sh
Simon Aronsson 3de202a965
fix depends on behavior and simplify some of its logic (#908)
* fix depends on behavior and simplify some of its logic

* fix comments
2021-04-18 18:37:35 +02:00

16 lines
408 B
Bash
Executable file

#!/usr/bin/env bash
# Simulates a container that will always be updated, checking whether it shuts down it's dependencies correctly.
docker rm -f parent || true
docker rm -f depending || true
CHANGE=redis:latest
KEEP=tutum/hello-world
docker tag tutum/hello-world:latest redis:latest
docker run -d --name parent $CHANGE
docker run -d --name depending --link parent $KEEP
go run . --run-once --debug $@