blob: 22ce5f7f197cfd66da636cd231d246bee559854f [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
David K. Bainbridge97ee8052016-06-14 00:52:07 -07007ADD . /go/src/gerrit.opencord.org/maas/cord-maas-automation
David K. Bainbridgeefa951d2016-05-26 10:54:25 -07008
David K. Bainbridge97ee8052016-06-14 00:52:07 -07009WORKDIR /go/src/gerrit.opencord.org/maas/cord-maas-automation
David K. Bainbridgeefa951d2016-05-26 10:54:25 -070010RUN /go/bin/godep restore
11
12WORKDIR /go
13
David K. Bainbridge97ee8052016-06-14 00:52:07 -070014RUN go install gerrit.opencord.org/maas/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"]