From 5a51adde8b322d34722f50702d6bd553382bc623 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 7 Jan 2014 09:22:05 -0600 Subject: go: fix docker deployment port assignment --- go/t/docker/docker_deploy.sh | 2 +- go/t/docker/dockertest/deploy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/go/t/docker/docker_deploy.sh b/go/t/docker/docker_deploy.sh index 25597bc5..7ed0de58 100755 --- a/go/t/docker/docker_deploy.sh +++ b/go/t/docker/docker_deploy.sh @@ -10,7 +10,7 @@ i=0 max_wait=20 echo "waiting for install (takes about 3 minutes)" sleep 240 -while ! curl -s localhost:$rnd_port >/dev/null;do +while ! curl -s localhost:$rnd_port >/dev/null ;do i=$((i+1)) test $i -gt $max_wait && echo "timeout for installation reached, bailing out" && exit 1 echo "http port not yet reachable ($i of $max_wait). waiting" diff --git a/go/t/docker/dockertest/deploy b/go/t/docker/dockertest/deploy index 355e667b..2d26c8fe 100644 --- a/go/t/docker/dockertest/deploy +++ b/go/t/docker/dockertest/deploy @@ -5,4 +5,4 @@ apt-get -y install redis-server nodejs npm npm config set registry http://registry.npmjs.org/ cd /krebs/go npm install -node . +PORT=80 node . -- cgit v1.2.3