2 changed files with 4 additions and 3 deletions
@ -1,12 +1,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" |
|||
echo "cqlsh: Cassandra is unavailable - retrying" |
|||
sleep 2 |
|||
done & |
|||
|
|||
fi |
|||
|
|||
exec /docker-entrypoint.sh "$@" |
|||
|
|||
Loading…
Reference in new issue