You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
watchtower/scripts/dependency-test.sh

17 lines
408 B
Bash

#!/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 $@