Skip to content

Commit da9c25b

Browse files
committed
Merge remote-tracking branch 'origin/master' into v2plugin_container_bash
2 parents f5ea71a + 6fcec36 commit da9c25b

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

install/v2plugin/Dockerfile

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
# Docker v2plugin container with OVS / netplugin / netmaster
22

3-
FROM alpine:3.5
3+
FROM alpine:3.6
44
LABEL maintainer "Cisco Contiv (https://contiv.github.io)"
55

66
RUN mkdir -p /run/docker/plugins /etc/openvswitch /var/run/contiv/log \
77
&& echo 'http://dl-cdn.alpinelinux.org/alpine/v3.4/main' >> /etc/apk/repositories \
88
&& apk --no-cache add \
9-
openvswitch=2.5.0-r0 iptables ca-certificates openssl curl bash \
10-
&& wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://raw.githubusercontent.com/andyshinn/alpine-pkg-glibc/master/sgerrand.rsa.pub \
11-
&& wget https://github.com/andyshinn/alpine-pkg-glibc/releases/download/2.23-r1/glibc-2.23-r1.apk \
12-
&& apk --no-cache add glibc-2.23-r1.apk
9+
openvswitch=2.5.0-r0 iptables ca-certificates openssl curl bash
1310

1411
# copy in binaries and scripts
1512
ARG TAR_FILE

netplugin/netd.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ func startNetPlugin(pluginConfig *plugin.Config) {
7575
}
7676
}
7777

78-
func initNetPluginConifg(ctx *cli.Context) (plugin.Config, error) {
79-
78+
func initNetPluginConfig(ctx *cli.Context) (plugin.Config, error) {
8079
// 1. validate and set up log
8180
if ctx.Bool("use-syslog") {
8281
syslogURL := ctx.String("syslog-url")
@@ -301,7 +300,7 @@ func main() {
301300
}
302301
sort.Sort(cli.FlagsByName(app.Flags))
303302
app.Action = func(ctx *cli.Context) error {
304-
configs, err := initNetPluginConifg(ctx)
303+
configs, err := initNetPluginConfig(ctx)
305304
if err != nil {
306305
errmsg := err.Error()
307306
logrus.Error(errmsg)

scripts/build.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ set -euxo pipefail
55
GIT_COMMIT=$(./scripts/getGitCommit.sh)
66

77
PKG_NAME=github.com/contiv/netplugin/version
8-
GOGC=1500 go install -v \
8+
GOGC=1500 CGO_ENABLED=0 go install -v \
9+
-a -installsuffix cgo \
910
-ldflags "-X $PKG_NAME.version=$BUILD_VERSION \
1011
-X $PKG_NAME.buildTime=$(date -u +%m-%d-%Y.%H-%M-%S.UTC) \
1112
-X $PKG_NAME.gitCommit=$GIT_COMMIT \
12-
-s -w" \
13+
-s -w -d" -pkgdir /tmp/foo-cgo \
1314
$TO_BUILD

0 commit comments

Comments
 (0)