mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-21 21:30:48 +02:00
fix depends on behavior and simplify some of its logic (#908)
* fix depends on behavior and simplify some of its logic * fix comments
This commit is contained in:
parent
4142f7966a
commit
3de202a965
5 changed files with 83 additions and 29 deletions
16
scripts/dependency-test.sh
Executable file
16
scripts/dependency-test.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/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 $@
|
Loading…
Add table
Add a link
Reference in a new issue