Skip to content

Commit 6a81f7d

Browse files
committed
Merge pull request #53 from contiv/mapuri/issue/52
Introduce Dockerfile for netplugin
2 parents 47a58eb + a5535c0 commit 6a81f7d

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

Dockerfile

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
##
2+
#Copyright 2014 Cisco Systems Inc. All rights reserved.
3+
#
4+
#Licensed under the Apache License, Version 2.0 (the "License");
5+
#you may not use this file except in compliance with the License.
6+
#You may obtain a copy of the License at
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.
14+
##
15+
16+
##
17+
# Container image for netplugin
18+
#
19+
# Run netplugin:
20+
# docker run --net=host <image> -host-label=<label>
21+
##
22+
23+
FROM golang:1.4
24+
MAINTAINER Madhav Puri <[email protected]> (@mapuri)
25+
26+
ENV GOPATH /go/
27+
28+
COPY ./ /go/src/github.com/contiv/netplugin/
29+
30+
WORKDIR /go/src/github.com/contiv/netplugin/
31+
32+
RUN make build
33+
34+
ENTRYPOINT ["netplugin"]
35+
CMD ["--help"]

0 commit comments

Comments
 (0)