Skip to content

Commit

Permalink
Added a random port forward for troubleshooting with docker
Browse files Browse the repository at this point in the history
  • Loading branch information
tdl-jturner committed Aug 19, 2019
1 parent ddd110a commit 87df346
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ startNode() {
IMAGE=$1
NODENAME=$2
SEED=$3
PORT=$(( ( RANDOM % 300 ) + 9000 ))

log "Starting Node - $NODENAME "

PARAMS="--network cassandra_test_default --label casquatch_test=$NODENAME"
PARAMS="--network cassandra_test_default -p $PORT:9042 --label casquatch_test=$NODENAME"

if [ ! -z "$SEED" ]; then
SEED_IP=`docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $SEED `
Expand Down

0 comments on commit 87df346

Please sign in to comment.