Skip to content

Commit faeb50c

Browse files
committed
chore(docker): add kubebuilder to base image
Add kubebuilder to base image to make it available for tests in openshift-ci.
1 parent b046424 commit faeb50c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

base.Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,12 @@
22

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

5-
RUN yum install -y skopeo
5+
# Install test dependencies
6+
RUN yum install -y skopeo && \
7+
export OS=$(go env GOOS) && \
8+
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 && \
11+
export PATH=$PATH:/usr/local/kubebuilder/bin && \
12+
echo "Kubebuilder installation complete!"
13+

0 commit comments

Comments
 (0)