Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
k8s-ingress
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
uplex-varnish
k8s-ingress
Commits
68798224
Commit
68798224
authored
Mar 27, 2019
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the controller executable smaller, hence also the container image.
parent
7075525b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Makefile
Makefile
+2
-1
Dockerfile.controller
container/Dockerfile.controller
+1
-1
No files found.
Makefile
View file @
68798224
...
...
@@ -64,7 +64,8 @@ generate: install-code-gen
--output-package
$(CLIENTPKG)
/informers
-h
$(BOILERPLATE)
k8s-ingress
:
build
CGO_ENABLED
=
0
GOOS
=
linux vgo build
-o
k8s-ingress cmd/
*
.go
CGO_ENABLED
=
0
GOOS
=
linux vgo build
-ldflags
=
"-w -s"
-o
k8s-ingress
\
cmd/
*
.go
check
:
build
golint ./pkg/controller/...
...
...
container/Dockerfile.controller
View file @
68798224
...
...
@@ -18,7 +18,7 @@ COPY ./cmd/ /go/src/code.uplex.de/uplex-varnish/k8s-ingress/cmd/
COPY ./.git/ /go/src/code.uplex.de/uplex-varnish/k8s-ingress/.git/
RUN vgo generate ./cmd/... && vgo build ./pkg/... ./cmd/... && \
CGO_ENABLED=0 GOOS=linux vgo build -o k8s-ingress cmd/*.go
CGO_ENABLED=0 GOOS=linux vgo build -
ldflags="-w -s" -
o k8s-ingress cmd/*.go
FROM alpine:3.8
COPY --from=builder /go/src/code.uplex.de/uplex-varnish/k8s-ingress/k8s-ingress /k8s-ingress
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment