Update sleep times and cat nohup for debug
@@ -31,11 +31,13 @@ before_script:
script:
# Running Cassandra deamon
- docker run -it --name weaviate_db_1_travis -e CASSANDRA_BROADCAST_ADDRESS=127.0.0.1 -p 7000:7000 -p 9042:9042 -v ~/cassandra:/var/lib/cassandra -d cassandra:3
- - sleep 26
+ - sleep 45
# Running Weaviate as deamon
- nohup go run ./cmd/weaviate-server/main.go --scheme=http --port=8080 --host=127.0.0.1 --config="cassandra_docker" --config-file="./weaviate.conf.json" &
# Sleep to make sure all is up and running
- - sleep 26
+ - sleep 45
+ # cat nohup for debugging
+ - cat nohup.out
# Find the correct ip, key and token
- CASSANDRAIP=$(sudo docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' weaviate_db_1_travis)
- ROOTTOKEN=$(cat nohup.out | grep -s ROOTTOKEN|sed 's/.*ROOTTOKEN=//')
