Files
weave/test/sanity_check.sh
T
Bryan Boreham 73d7812dc5 Check that latest version of weave image exists
The smoke-tests are meant to be run in a context where you have just
uploaded a build. If that upload failed and we don't do this check
then we will download the 'latest' images from DockerHub.
2016-06-07 13:29:44 +01:00

28 lines
597 B
Bash
Executable File

#! /bin/bash
. ./config.sh
set -e
whitely echo Ping each host from the other
for host in $HOSTS; do
for other in $HOSTS; do
[ $host = $other ] || run_on $host $PING $other
done
done
whitely echo Check we can reach docker
for host in $HOSTS; do
echo
echo Host Version Info: $host
echo =====================================
echo "# docker version"
docker_on $host version
echo "# docker info"
docker_on $host info
echo "# weave version"
docker inspect -f {{.Created}} weaveworks/weave:${WEAVE_VERSION:-latest}
weave_on $host version
done