#! /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"
    weave_on $host version
done

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

Check that latest version of weave image exists
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.
