Skip to content

Commit 0f0d950

Browse files
authored
Merge pull request #1013 from contiv/master
Merge master into release-1.1
2 parents 1a3e65c + fbc532d commit 0f0d950

29 files changed

+272
-306
lines changed

.dockerignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# we want to get the git commit SHA but not all the binary repo data
2+
.git/objects/pack
3+
bin/
4+
vagrant/
5+
docs/
6+
scripts/gobgp
7+
*.tar
8+
*.bz2

.github/CONTRIBUTING.md

-169
This file was deleted.

CONTRIBUTING.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Please refer to Contiv [community contribution guidelines](http://contiv.github.io/documents/community/CONTRIBUTING.html).

Dockerfile

+17-4
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,27 @@ FROM golang:1.7.6
2828
#ENV https_proxy ""
2929
ARG http_proxy
3030
ARG https_proxy
31-
ENV GOPATH=/go/ NET_CONTAINER_BUILD=1
31+
32+
WORKDIR /go/src/github.com/contiv/netplugin/
3233

3334
ENTRYPOINT ["netplugin"]
3435
CMD ["--help"]
3536

36-
COPY ./ /go/src/github.com/contiv/netplugin/
37+
# by far, most of the compilation time is building vendor packages
38+
# build the vendor dependencies as a separate docker caching layer
39+
COPY ./vendor/ /go/src/github.com/contiv/netplugin/vendor/
3740

38-
WORKDIR /go/src/github.com/contiv/netplugin/
41+
RUN GOGC=1500 go install -ldflags "-s -w" $(go list ./vendor/...)
42+
43+
# build the netplugin binaries
44+
COPY ./ /go/src/github.com/contiv/netplugin/
3945

40-
RUN make build
46+
ARG BUILD_VERSION=""
47+
ARG NIGHTLY_RELEASE=""
4148

49+
RUN GOPATH=/go/ \
50+
BUILD_VERSION="${BUILD_VERSION}" \
51+
NIGHTLY_RELEASE="${NIGHTLY_RELEASE}" \
52+
make compile \
53+
&& cp scripts/contrib/completion/bash/netctl /etc/bash_completion.d/netctl \
54+
&& netplugin -version

GOVERNANCE.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Please refer to Contiv [community governance guidelines](http://contiv.github.io/documents/community/GOVERNANCE.html).

Godeps/Godeps.json

+31-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)