mirror of
https://github.com/beekeeper-studio/beekeeper-studio.git
synced 2026-03-13 10:12:54 +08:00
14 lines
342 B
Bash
Executable File
14 lines
342 B
Bash
Executable File
#!/bin/bash
|
|
|
|
FILE=/var/lib/cassandra/.initialized.nu
|
|
|
|
if [ ! -f "$FILE" ]; then
|
|
# Create default keyspace for single node cluster
|
|
until cqlsh localhost -f docker-entrypoint.initdb.d/data.cql && touch $FILE; do
|
|
echo "cqlsh: Cassandra is unavailable - retry later"
|
|
sleep 2
|
|
done &
|
|
fi
|
|
|
|
exec /usr/local/bin/docker-entrypoint.sh "$@"
|