File tree 3 files changed +7
-11
lines changed
3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 1
1
# Docker v2plugin container with OVS / netplugin / netmaster
2
2
3
- FROM alpine:3.5
3
+ FROM alpine:3.6
4
4
LABEL maintainer "Cisco Contiv (https://contiv.github.io)"
5
5
6
6
RUN mkdir -p /run/docker/plugins /etc/openvswitch /var/run/contiv/log \
7
7
&& echo 'http://dl-cdn.alpinelinux.org/alpine/v3.4/main' >> /etc/apk/repositories \
8
- && 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
8
+ && apk --no-cache add openvswitch=2.5.0-r0 iptables ca-certificates openssl curl bash
13
9
14
10
# copy in binaries and scripts
15
11
ARG TAR_FILE
Original file line number Diff line number Diff line change @@ -75,8 +75,7 @@ func startNetPlugin(pluginConfig *plugin.Config) {
75
75
}
76
76
}
77
77
78
- func initNetPluginConifg (ctx * cli.Context ) (plugin.Config , error ) {
79
-
78
+ func initNetPluginConfig (ctx * cli.Context ) (plugin.Config , error ) {
80
79
// 1. validate and set up log
81
80
if ctx .Bool ("use-syslog" ) {
82
81
syslogURL := ctx .String ("syslog-url" )
@@ -301,7 +300,7 @@ func main() {
301
300
}
302
301
sort .Sort (cli .FlagsByName (app .Flags ))
303
302
app .Action = func (ctx * cli.Context ) error {
304
- configs , err := initNetPluginConifg (ctx )
303
+ configs , err := initNetPluginConfig (ctx )
305
304
if err != nil {
306
305
errmsg := err .Error ()
307
306
logrus .Error (errmsg )
Original file line number Diff line number Diff line change @@ -5,9 +5,10 @@ set -euxo pipefail
5
5
GIT_COMMIT=$( ./scripts/getGitCommit.sh)
6
6
7
7
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 \
9
10
-ldflags " -X $PKG_NAME .version=$BUILD_VERSION \
10
11
-X $PKG_NAME .buildTime=$( date -u +%m-%d-%Y.%H-%M-%S.UTC) \
11
12
-X $PKG_NAME .gitCommit=$GIT_COMMIT \
12
- -s -w" \
13
+ -s -w -d " -pkgdir /tmp/foo-cgo \
13
14
$TO_BUILD
You can’t perform that action at this time.
0 commit comments