File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Dockerfile to bootstrap build and test in openshift-ci
2
-
3
- # TODO: do we need to use quay due to dockerhub rate limiting?
4
2
FROM openshift/origin-release:golang-1.16
5
3
4
+ ARG KUBEBUILDER_RELEASE=2.3.1
6
5
# Install test dependencies
7
6
RUN yum install -y skopeo && \
8
7
export OS=$(go env GOOS) && \
9
8
export ARCH=$(go env GOARCH) && \
10
- curl -L "https://go.kubebuilder.io/dl/2.3.1 /${OS}/${ARCH}" | tar -xz -C /tmp/ && \
11
- 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 && \
12
11
export PATH=$PATH:/usr/local/kubebuilder/bin && \
13
12
echo "Kubebuilder installation complete!"
You can’t perform that action at this time.
0 commit comments