Sha256: 28d3024f1c5f8dc5a73d43abc7c37ec7e3b5cbbaa54d013630636bff61d1576e

Contents?: true

Size: 596 Bytes

Versions: 1

Compression:

Stored size: 596 Bytes

Contents

#!/bin/bash

docker-compose up -d myCassandra

# Wait for Cassandra
CASSANDRA_STATUS="undecided"
TOTAL_WAIT=0;
while [ "$CASSANDRA_STATUS" != "running" ] && [ $TOTAL_WAIT -lt 60 ]; do
 CASSANDRA_STATUS=`docker-compose exec myCassandra nodetool statusbinary | tr -dc '[[:print:]]'`
 echo "Cassandra server status: $CASSANDRA_STATUS."

 sleep 3

 TOTAL_WAIT=$((TOTAL_WAIT+3))
 echo "Waited $TOTAL_WAIT seconds for Cassandra to start."
done

# Ensure the volume exists and has correct permissions.
mkdir -p /tmp/opt/hawkular/server
chown 1000:1000 -R /tmp/opt/hawkular
docker-compose up -d hawkular

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hawkular-client-2.9.0 .travis/start_hawkular_services.sh