Skip to content

Commit 883d45b

Browse files
committed
Fix kubebuilder installation in the build root Dockerfile
Update the base.Dockerfile and fix the kubebuilder installation. That vanity URL is no longer correctly serving the v2.3.1 release tar.gz file. Update to instead curl directly from the github releases URL. Signed-off-by: timflannagan <[email protected]>
1 parent 2012879 commit 883d45b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

base.Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
FROM openshift/origin-release:golang-1.13
44

5-
# Install test dependencies
5+
ARG KUBEBUILDER_RELEASE=2.3.1
66
RUN yum install -y skopeo && \
77
export OS=$(go env GOOS) && \
88
export ARCH=$(go env GOARCH) && \
9-
curl -L "https://go.kubebuilder.io/dl/2.3.1/${OS}/${ARCH}" | tar -xz -C /tmp/ && \
10-
mv /tmp/kubebuilder_2.3.1_${OS}_${ARCH}/ /usr/local/kubebuilder && \
9+
curl -L "https://github.com/kubernetes-sigs/kubebuilder/releases/download/v${KUBEBUILDER_RELEASE}/kubebuilder_${KUBEBUILDER_RELEASE}_${OS}_${ARCH}.tar.gz" | tar -xz -C /tmp/ && \
10+
mv /tmp/kubebuilder_${KUBEBUILDER_RELEASE}_${OS}_${ARCH}/ /usr/local/kubebuilder && \
1111
export PATH=$PATH:/usr/local/kubebuilder/bin && \
12+
kubebuilder version && \
1213
echo "Kubebuilder installation complete!"

0 commit comments

Comments
 (0)