2018-05-11 17:38:25 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
if [[ $1 = 'cassandra' ]]; then
|
|
|
|
|
|
|
|
|
|
until cqlsh -f/opt/cassandra/schema.cql; do
|
2018-05-11 17:56:11 +03:00
|
|
|
echo "cqlsh: Cassandra is unavailable - retrying"
|
2018-05-11 17:38:25 +03:00
|
|
|
sleep 2
|
|
|
|
|
done &
|
2018-05-11 17:56:11 +03:00
|
|
|
|
2018-05-11 17:38:25 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
exec /docker-entrypoint.sh "$@"
|