David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 1 | FROM golang:alpine |
| 2 | |
David K. Bainbridge | 6ea57c1 | 2016-06-06 23:29:12 -0700 | [diff] [blame^] | 3 | RUN apk --update add openssh-client git |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 4 | |
| 5 | WORKDIR /go |
David K. Bainbridge | efa951d | 2016-05-26 10:54:25 -0700 | [diff] [blame] | 6 | RUN go get github.com/tools/godep |
| 7 | ADD . /go/src/github.com/ciena/cord-maas-automation |
| 8 | |
| 9 | WORKDIR /go/src/github.com/ciena/cord-maas-automation |
| 10 | RUN /go/bin/godep restore |
| 11 | |
| 12 | WORKDIR /go |
| 13 | |
| 14 | RUN go install github.com/ciena/cord-maas-automation |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 15 | |
David K. Bainbridge | 6ea57c1 | 2016-06-06 23:29:12 -0700 | [diff] [blame^] | 16 | RUN mkdir -p /root/.ssh |
| 17 | COPY ssh-config /root/.ssh/config |
| 18 | |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 19 | ENTRYPOINT ["/go/bin/cord-maas-automation"] |