entrypoint-with-db-init.sh 204 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 #!/bin/bash if [[ $1 = 'cassandra' ]]; then until cqlsh -f/opt/cassandra/schema.cql; do echo "cqlsh: Cassandra is unavailable - retrying" sleep 2 done & fi exec /docker-entrypoint.sh "$@"