Fixed cassandra schema instance name
This commit is contained in:
		
							parent
							
								
									d850f92c7b
								
							
						
					
					
						commit
						9a6d984441
					
				@ -18,7 +18,7 @@
 | 
			
		||||
 | 
			
		||||
until nmap $CASSANDRA_URL -p 9042 | grep "9042/tcp open"
 | 
			
		||||
do
 | 
			
		||||
  echo "Wait for Cassandra..."
 | 
			
		||||
  echo "Wait for $CASSANDRA_URL..."
 | 
			
		||||
  sleep 10
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,6 @@
 | 
			
		||||
#Thingsboard server configuration
 | 
			
		||||
 | 
			
		||||
TB_CASSANDRA_SCHEMA_URL=tb-cassandra-schema
 | 
			
		||||
CASSANDRA_URL=cassandra:9042
 | 
			
		||||
ZOOKEEPER_URL=zk:2181
 | 
			
		||||
MQTT_BIND_ADDRESS=0.0.0.0
 | 
			
		||||
 | 
			
		||||
@ -21,12 +21,12 @@ dpkg -i /root/thingsboard.deb
 | 
			
		||||
reachable=0
 | 
			
		||||
while [ $reachable -eq 0 ];
 | 
			
		||||
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
 | 
			
		||||
  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 ];
 | 
			
		||||
  then
 | 
			
		||||
    echo "tb-cassandra-schema container completed!"
 | 
			
		||||
    echo "$TB_CASSANDRA_SCHEMA_URL container completed!"
 | 
			
		||||
    reachable=1
 | 
			
		||||
  fi
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user