blob: ba7155d8d18b84b395475fe7b88051b7e9e02d20 [file] [log] [blame]
David K. Bainbridgedf9df632016-07-07 18:47:46 -07001## Copyright 2016 Open Networking Laboratory
2##
3## Licensed under the Apache License, Version 2.0 (the "License");
4## you may not use this file except in compliance with the License.
5## You may obtain a copy of the License at
6##
7## http://www.apache.org/licenses/LICENSE-2.0
8##
9## Unless required by applicable law or agreed to in writing, software
10## distributed under the License is distributed on an "AS IS" BASIS,
11## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12## See the License for the specific language governing permissions and
13## limitations under the License.
David K. Bainbridge8bc905c2016-05-31 14:07:10 -070014FROM golang:alpine
David K. Bainbridgedf9df632016-07-07 18:47:46 -070015MAINTAINER Open Networking Labratory <info@onlab.us>
David K. Bainbridge8bc905c2016-05-31 14:07:10 -070016
17RUN apk --update add git
18
19WORKDIR /go
20RUN go get github.com/tools/godep
David K. Bainbridge97ee8052016-06-14 00:52:07 -070021ADD . /go/src/gerrit.opencord.org/maas/cord-ip-allocator
David K. Bainbridge8bc905c2016-05-31 14:07:10 -070022
David K. Bainbridge97ee8052016-06-14 00:52:07 -070023WORKDIR /go/src/gerrit.opencord.org/maas/cord-ip-allocator
David K. Bainbridgea9c2e0a2016-07-01 18:33:50 -070024RUN /go/bin/godep restore || true
David K. Bainbridge8bc905c2016-05-31 14:07:10 -070025
26WORKDIR /go
27
David K. Bainbridge97ee8052016-06-14 00:52:07 -070028RUN go install gerrit.opencord.org/maas/cord-ip-allocator
David K. Bainbridge8bc905c2016-05-31 14:07:10 -070029
30ENTRYPOINT ["/go/bin/cord-ip-allocator"]