blob: ad788744395c1789990dccbbefc431e20acb57f3 [file] [log] [blame]
David K. Bainbridgeb5415042016-05-13 17:06:10 -07001FROM golang:alpine
2
David K. Bainbridge6ea57c12016-06-06 23:29:12 -07003RUN apk --update add openssh-client git
David K. Bainbridgeb5415042016-05-13 17:06:10 -07004
5WORKDIR /go
David K. Bainbridgeefa951d2016-05-26 10:54:25 -07006RUN go get github.com/tools/godep
7ADD . /go/src/github.com/ciena/cord-maas-automation
8
9WORKDIR /go/src/github.com/ciena/cord-maas-automation
10RUN /go/bin/godep restore
11
12WORKDIR /go
13
14RUN go install github.com/ciena/cord-maas-automation
David K. Bainbridgeb5415042016-05-13 17:06:10 -070015
David K. Bainbridge6ea57c12016-06-06 23:29:12 -070016RUN mkdir -p /root/.ssh
17COPY ssh-config /root/.ssh/config
18
David K. Bainbridgeb5415042016-05-13 17:06:10 -070019ENTRYPOINT ["/go/bin/cord-maas-automation"]