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