blob: e80a5908b3155a54a727ec321f19ba6189a7d618 [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. Bainbridge3569d622016-09-16 08:40:54 -070014FROM golang:1.6-alpine
Murat Parlakisikc3e18502016-08-08 15:36:13 -070015MAINTAINER Open Networking Laboratory <info@onlab.us>
David K. Bainbridgef694f5a2016-06-10 16:21:27 -070016
David K. Bainbridge3569d622016-09-16 08:40:54 -070017RUN apk --update add openssh-client git
David K. Bainbridgef694f5a2016-06-10 16:21:27 -070018
19RUN mkdir -p /switchq
20COPY vendors.json /switchq/vendors.json
21
22RUN go get github.com/tools/godep
David K. Bainbridge3569d622016-09-16 08:40:54 -070023ADD . /go/src/gerrit.opencord.com/maas/switchq
David K. Bainbridgef694f5a2016-06-10 16:21:27 -070024
David K. Bainbridge3569d622016-09-16 08:40:54 -070025WORKDIR /go/src/gerrit.opencord.com/maas/switchq
26RUN /go/bin/godep restore || true
David K. Bainbridgef694f5a2016-06-10 16:21:27 -070027
David K. Bainbridge3569d622016-09-16 08:40:54 -070028WORKDIR /go
David K. Bainbridgef694f5a2016-06-10 16:21:27 -070029RUN go install gerrit.opencord.com/maas/switchq
30
David K. Bainbridgede0d9262016-09-13 20:12:06 -070031LABEL org.label-schema.name="switchq" \
32 org.label-schema.description="Provides fabric switch discovery and provisioning" \
33 org.label-schema.vcs-url="https://gerrit.opencord.org/maas" \
David K. Bainbridgeea76b182016-11-17 14:07:35 -080034 org.label-schema.vendor="Open Networking Laboratory" \
David K. Bainbridgede0d9262016-09-13 20:12:06 -070035 org.label-schema.schema-version="1.0"
36
David K. Bainbridgef694f5a2016-06-10 16:21:27 -070037ENTRYPOINT ["/go/bin/switchq"]