Fixed cassandra schema instance name

This commit is contained in:
Volodymyr Babak 2017-05-24 16:49:27 +03:00
parent d850f92c7b
commit 9a6d984441
3 changed files with 5 additions and 4 deletions

View File

@ -18,7 +18,7 @@
until nmap $CASSANDRA_URL -p 9042 | grep "9042/tcp open" until nmap $CASSANDRA_URL -p 9042 | grep "9042/tcp open"
do do
echo "Wait for Cassandra..." echo "Wait for $CASSANDRA_URL..."
sleep 10 sleep 10
done done

View File

@ -1,5 +1,6 @@
#Thingsboard server configuration #Thingsboard server configuration
TB_CASSANDRA_SCHEMA_URL=tb-cassandra-schema
CASSANDRA_URL=cassandra:9042 CASSANDRA_URL=cassandra:9042
ZOOKEEPER_URL=zk:2181 ZOOKEEPER_URL=zk:2181
MQTT_BIND_ADDRESS=0.0.0.0 MQTT_BIND_ADDRESS=0.0.0.0

View File

@ -21,12 +21,12 @@ dpkg -i /root/thingsboard.deb
reachable=0 reachable=0
while [ $reachable -eq 0 ]; while [ $reachable -eq 0 ];
do do
echo "tb-cassandra-schema container is still in progress. waiting until it completed..." echo "$TB_CASSANDRA_SCHEMA_URL container is still in progress. waiting until it completed..."
sleep 3 sleep 3
ping -q -c 1 tb-cassandra-schema > /dev/null 2>&1 ping -q -c 1 $TB_CASSANDRA_SCHEMA_URL > /dev/null 2>&1
if [ "$?" -ne 0 ]; if [ "$?" -ne 0 ];
then then
echo "tb-cassandra-schema container completed!" echo "$TB_CASSANDRA_SCHEMA_URL container completed!"
reachable=1 reachable=1
fi fi
done done