From acd1bf56fb6c13d3effc6304fe5af4623fc952b0 Mon Sep 17 00:00:00 2001 From: squat Date: Tue, 14 May 2024 17:20:03 +0200 Subject: [PATCH] container: add kgctl binary This makes it easy to run Kilo sidecars that connect a workload to a mesh using `kgctl connect`. Signed-off-by: squat --- Dockerfile | 1 + Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b0e5a8b5..0869b8fa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,4 +16,5 @@ COPY --from=cni bridge host-local loopback portmap /opt/cni/bin/ ADD https://raw.githubusercontent.com/kubernetes-sigs/iptables-wrappers/e139a115350974aac8a82ec4b815d2845f86997e/iptables-wrapper-installer.sh / RUN chmod 700 /iptables-wrapper-installer.sh && /iptables-wrapper-installer.sh --no-sanity-check COPY bin/linux/$GOARCH/kg /opt/bin/ +COPY bin/linux/$GOARCH/kgctl /opt/bin/ ENTRYPOINT ["/opt/bin/kg"] diff --git a/Makefile b/Makefile index 1ed14dce..8f278833 100644 --- a/Makefile +++ b/Makefile @@ -252,7 +252,7 @@ website/build/index.html: website/docs/README.md docs/api.md yarn --cwd website build container: .container-$(ARCH)-$(VERSION) container-name -.container-$(ARCH)-$(VERSION): bin/linux/$(ARCH)/kg Dockerfile +.container-$(ARCH)-$(VERSION): bin/linux/$(ARCH)/kg bin/linux/$(ARCH)/kgctl Dockerfile @i=0; for a in $(ALL_ARCH); do [ "$$a" = $(ARCH) ] && break; i=$$((i+1)); done; \ ia=""; iv=""; \ j=0; for a in $(DOCKER_ARCH); do \