Skip to content

Commit

Permalink
chore(docker): add kubebuilder to base image
Browse files Browse the repository at this point in the history
Add kubebuilder to base image to make it available for tests in
openshift-ci.
  • Loading branch information
njhale committed Apr 15, 2020
1 parent b046424 commit faeb50c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion base.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,12 @@

FROM openshift/origin-release:golang-1.13

RUN yum install -y skopeo
# Install test dependencies
RUN yum install -y skopeo && \
export OS=$(go env GOOS) && \
export ARCH=$(go env GOARCH) && \
curl -L "https://go.kubebuilder.io/dl/2.3.1/${OS}/${ARCH}" | tar -xz -C /tmp/ && \
mv /tmp/kubebuilder_2.3.1_${OS}_${ARCH}/ /usr/local/kubebuilder && \
export PATH=$PATH:/usr/local/kubebuilder/bin && \
echo "Kubebuilder installation complete!"

0 comments on commit faeb50c

Please sign in to comment.