anchor.diff:        postgres) retry_checker "PGPASSWORD=nailgun shell_container postgres psql -h 127.0.0.1 -U nailgun nailgun -c '\copyright' 2>&1 1>/dev/null" ;;
         astute) retry_checker "shell_container astute ps aux | grep -q 'astuted'"
                 retry_checker "curl -f -L -u naily:naily -s http://127.0.0.1:15672/api/exchanges | grep -qw 'nailgun'"
  -              retry_checker "curl -f -L -u naily:naily -s http://127.0.0.1:15672/api/exchanges | grep -qw 'naily'"
                 retry_checker "curl -f -L -u naily:naily -s http://127.0.0.1:15672/api/exchanges | grep -qw 'naily_service'" ;;
         rsync) retry_checker "shell_container rsync netstat -ntl | grep -q 873" ;;
         rsyslog) retry_checker "shell_container rsyslog netstat -nl | grep -q 514" ;;
  
positive.code: 
  function retry_checker {
    tries=0
    failure=0
    echo "checking with command \"$*\""
    while ! eval $*; do
       ((tries++))
       echo "try number $tries"
       echo "return code is $rc"
  
negative.code: 
  function check_ready {
    #Uses a custom command to ensure a container is ready
    failure=0
    echo "checking container $1"
    case $1 in
        nailgun) retry_checker '[ $(curl --connect-timeout 1 -s -w %{http_code} http://127.0.0.1:8000/api/version -o /dev/null) = "200" ]'  ;;
  