David K. Bainbridge | efa951d | 2016-05-26 10:54:25 -0700 | [diff] [blame] | 1 | FROM ubuntu:14.04 |
| 2 | |
| 3 | RUN 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 | |
| 9 | RUN mkdir /go |
| 10 | WORKDIR /go |
| 11 | ENV GOPATH=/go |
| 12 | RUN go get github.com/tools/godep |
| 13 | ADD . /go/src/github.com/ciena/cord-maas-automation |
| 14 | |
| 15 | WORKDIR /go/src/github.com/ciena/cord-maas-automation |
| 16 | RUN /go/bin/godep restore |
| 17 | |
| 18 | WORKDIR /go |
| 19 | RUN go install github.com/ciena/cord-maas-automation |
| 20 | |
| 21 | ENTRYPOINT ["/go/bin/cord-maas-automation"] |