forked from cilium/cilium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Simplify docker plugin & operator dockerfiles
- remove unused `V` argument - remove unused `PKG_BUILD` variable declaration - `CGO_ENABLED=0` is now the default - `GOOS=linux` is redundant - `-a` is meaningless in contaniner build - `-installsuffix cgo` was a red herring Signed-off-by: Ilya Dmitrichenko <[email protected]>
- Loading branch information
1 parent
8b74e24
commit 6ecdf95
Showing
2 changed files
with
2 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,7 @@ LABEL maintainer="[email protected]" | |
ADD . /go/src/github.com/cilium/cilium | ||
WORKDIR /go/src/github.com/cilium/cilium/plugins/cilium-docker | ||
ARG LOCKDEBUG | ||
ARG V | ||
RUN make CGO_ENABLED=0 GOOS=linux LOCKDEBUG=$LOCKDEBUG PKG_BUILD=1 EXTRA_GOBUILD_FLAGS="-a -installsuffix cgo" | ||
RUN make LOCKDEBUG=$LOCKDEBUG | ||
|
||
FROM scratch | ||
LABEL maintainer="[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,7 @@ LABEL maintainer="[email protected]" | |
ADD . /go/src/github.com/cilium/cilium | ||
WORKDIR /go/src/github.com/cilium/cilium/operator | ||
ARG LOCKDEBUG | ||
ARG V | ||
RUN make CGO_ENABLED=0 GOOS=linux LOCKDEBUG=$LOCKDEBUG PKG_BUILD=1 EXTRA_GOBUILD_FLAGS="-a -installsuffix cgo -tags operator_aws,operator_azure" | ||
RUN make LOCKDEBUG=$LOCKDEBUG EXTRA_GOBUILD_FLAGS="-tags operator_aws,operator_azure" | ||
|
||
FROM docker.io/library/alpine:3.9.3 as certs | ||
RUN apk --update add ca-certificates | ||
|