Skip to content

Commit 1526a65

Browse files
committed
Dockerfile: Avoid hardcoding the kubebuilder version in the build root image
Signed-off-by: timflannagan <[email protected]>
1 parent 152a471 commit 1526a65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

base.Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Dockerfile to bootstrap build and test in openshift-ci
2-
32
FROM openshift/origin-release:golang-1.15
43

4+
ARG KUBEBUILDER_RELEASE=2.3.1
55
# Install test dependencies
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://go.kubebuilder.io/dl/${KUBEBUILDER_RELEASE}/${OS}/${ARCH}" | tar -xz -C /tmp/ && \
10+
mv /tmp/kubebuilder_${KUBEBUILDER_RELEASE}_${OS}_${ARCH}/ /usr/local/kubebuilder && \
1111
export PATH=$PATH:/usr/local/kubebuilder/bin && \
1212
echo "Kubebuilder installation complete!"

0 commit comments

Comments
 (0)