Skip to content

Commit

Permalink
Add kube-tools for CI jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
tnozicka committed Jun 15, 2023
1 parent c3eb537 commit 3e29b3d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ build:
$(call build-image,./golang/1.18,$(REPO):golang-1.18,$(REPO):base-ubuntu-22.04)
$(call build-image,./golang/1.19,$(REPO):golang-1.19,$(REPO):base-ubuntu-22.04)
$(call build-image,./golang/1.20,$(REPO):golang-1.20,$(REPO):base-ubuntu-22.04)
$(call build-image,./kube-tools/latest,$(REPO):kube-tools,$(REPO):golang-1.20)
$(call build-image,./node-setup,$(REPO):node-setup,$(REPO):base-ubuntu-22.04)
.PHONY: build

Expand Down
14 changes: 14 additions & 0 deletions kube-tools/latest/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM to-be-replaced-by-local-ref/golang:1.20

RUN set -euExo pipefail && shopt -s inherit_errexit && \
apt-get update && \
apt-get install -y --no-install-recommends rsync && \
apt-get clean && \
mkdir -p /go/src/k8s.io/ && \
cd /go/src/k8s.io/ && \
git clone --depth=1 --branch v1.27.3 https://github.com/kubernetes/kubernetes.git && \
cd ./kubernetes && \
make WHAT=cmd/kubectl && \
mv /go/src/k8s.io/kubernetes/_output/bin/kubectl /usr/bin/ && \
rm -rf /go/src/k8s.io/ && \
rm -rf /tmp/*

0 comments on commit 3e29b3d

Please sign in to comment.