Skip to content

Commit

Permalink
e2e-test: expose minion 8080 port
Browse files Browse the repository at this point in the history
Otherwise the test fails when trying to reach the
nginx containers.
  • Loading branch information
Daniel Norberg committed Jun 12, 2014
1 parent b6521a3 commit 0a4e798
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions hack/e2e-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,21 @@ $(dirname $0)/../cluster/kube-up.sh
# Auto shutdown cluster when we exit
function shutdown-test-cluster () {
echo "Shutting down test cluster in background."
gcloud compute firewalls delete --quiet ${MINION_TAG}-http-alt \
--project ${PROJECT} &
$(dirname $0)/../cluster/kube-down.sh > /dev/null &
}
trap shutdown-test-cluster EXIT

# Detect the project into $PROJECT if it isn't set
detect-project

# Open up port 8080 so nginx containers on minions can be reached
gcloud compute firewalls create --quiet ${MINION_TAG}-http-alt \
--project ${PROJECT} \
--target-tags ${MINION_TAG} \
--allow tcp:8080 &

# Launch a container
$(dirname $0)/../cluster/cloudcfg.sh -p 8080:80 run dockerfile/nginx 2 myNginx

Expand Down

0 comments on commit 0a4e798

Please sign in to comment.