Sign in

简柏林 / thingskit · Files

GitLab

  • Go to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Network
  • thingskit
  • entrypoint-with-db-init.sh
  • reformat dockerfile
    f2bbe7e1
    Yura authored
    2018-05-11 17:56:11 +0300  
    Browse Files »
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 "$@"