TripleParity/docks-api

View on GitHub
wait-for-docks.sh

Summary

Maintainability
Test Coverage
#!/bin/sh

set -e

host=$1

# Wait for postgresql to be functional
until curl $host; do
  >&2 echo "Docks is unavailable - sleeping"
  sleep 1
done

echo "Docks is ready"