add auto-pause to kic image

pull/10427/head
Medya Gh 2021-02-20 13:52:48 -08:00
parent 8df298f348
commit 175dbcf7ae
3 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

@ -26,6 +26,7 @@ _testmain.go
*.test
*.prof
/deploy/kicbase/auto-pause
/out
/_gopath

View File

@ -815,6 +815,8 @@ out/mkcmp:
.PHONY: out/auto-pause # auto pause binary to be used for auto-pause addon (only linux)
out/auto-pause:
GOOS=linux GOARCH=$(GOARCH) go build -o $@ cmd/auto-pause/auto-pause.go
# work arround for not passing the whole repo as docker context
GOOS=linux GOARCH=$(GOARCH) go build -o deploy/kicbase/auto-pause cmd/auto-pause/auto-pause.go
.PHONY: out/performance-bot
out/performance-bot:

View File

@ -29,7 +29,7 @@ COPY 11-tcp-mtu-probing.conf /etc/sysctl.d/11-tcp-mtu-probing.conf
COPY clean-install /usr/local/bin/clean-install
COPY entrypoint /usr/local/bin/entrypoint
# must first run make out/auto-pause
COPY ../../out/auto-pause /usr/local/bin/auto-pause
COPY auto-pause /usr/local/bin/auto-pause
# Install dependencies, first from apt, then from release tarballs.
# NOTE: we use one RUN to minimize layers.