summaryrefslogtreecommitdiff
path: root/web-app/Dockerfile
blob: 934315a68c3d7fb84b2d01049aa165631a596574 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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