extract first port from Dockerfile and set config variable for use in deploy phase. closes #993

This commit is contained in:
Michael Hobbs
2015-02-25 19:45:20 -08:00
parent fafa33e40d
commit 2834ce1f1a
4 changed files with 16 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ FROM ubuntu:trusty
ENV LC_ALL C
ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true
EXPOSE 5000
EXPOSE 3000
RUN apt-get install -y software-properties-common && add-apt-repository ppa:chris-lea/node.js && apt-get update
RUN apt-get install -y build-essential curl postgresql-client-9.3 nodejs git

View File

@@ -108,3 +108,11 @@ teardown() {
echo "status: "$status
assert_success
}
@test "dockerfile port exposure" {
deploy_app dockerfile
run bash -c "grep upstream $DOKKU_ROOT/$TEST_APP/nginx.conf | grep 3000"
echo "output: "$output
echo "status: "$status
assert_success
}