blob: 4b5a2397be17a87333b1980d4986b3255f4ad197 [file] [log] [blame]
David K. Bainbridgeefa951d2016-05-26 10:54:25 -07001FROM ubuntu:14.04
2
3RUN apt-get update -y && \
4 sudo apt-get install -y software-properties-common && \
5 apt-add-repository ppa:ansible/ansible && \
6 apt-get update -y && \
7 apt-get install -y git ansible golang
8
9RUN mkdir /go
10WORKDIR /go
11ENV GOPATH=/go
12RUN go get github.com/tools/godep
13ADD . /go/src/github.com/ciena/cord-maas-automation
14
15WORKDIR /go/src/github.com/ciena/cord-maas-automation
16RUN /go/bin/godep restore
17
18WORKDIR /go
19RUN go install github.com/ciena/cord-maas-automation
20
21ENTRYPOINT ["/go/bin/cord-maas-automation"]