diff options
Diffstat (limited to 'web-app/Dockerfile')
-rw-r--r-- | web-app/Dockerfile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/web-app/Dockerfile b/web-app/Dockerfile new file mode 100644 index 0000000..934315a --- /dev/null +++ b/web-app/Dockerfile @@ -0,0 +1,33 @@ +FROM ubuntu:14.04 +RUN apt-get update +RUN apt-get install -y build-essential git wget curl mercurial + +RUN mkdir /goproj + +ENV GOPATH=/goproj +ENV PATH=/goproj/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin + +# install golang from source +RUN wget -qO- https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz | tar -C /usr/local -xzf - + +# create gopath directories +RUN mkdir -p /goproj +RUN mkdir -p /goproj/bin +RUN mkdir -p /goproj/pkg +RUN mkdir -p /goproj/src/linaro.org/tempest-ci-webapp + +# get dependencies +RUN go get github.com/gorilla/mux +RUN go get github.com/jmcvetta/neoism + +# Copy the local package files to the container's workspace. +ADD . /goproj/src/linaro.org/tempest-ci-webapp + +WORKDIR /goproj/src/linaro.org/tempest-ci-webapp +RUN go install . + +# Run the outyet command by default when the container starts. +ENTRYPOINT /goproj/bin/tempest-ci-webapp -dbserver=http://neo4j:7474/db/data/ + +# Document that the service listens on port 8081. +EXPOSE 8081 |