Skip to content

Commit d6827c7

Browse files
committed
oc version
1 parent 93fa297 commit d6827c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

images/stackrox-test.Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,14 @@ RUN set -ex \
9292
&& bats -v
9393

9494
# Install oc
95+
ARG OC_VERSION=4.11.0-0.okd-2023-01-14-152430
9596
RUN set -e; \
9697
case "$TARGETARCH" in \
9798
"amd64") OC_ARCH="";; \
9899
"arm64") OC_ARCH="arm64-";; \
99100
*) echo "Unsupported $TARGETARCH"; exit 1;; \
100101
esac \
101-
&& wget --no-verbose -O oc.tgz https://github.com/okd-project/okd/releases/download/4.11.0-0.okd-2023-01-14-152430/openshift-client-linux-${OC_ARCH}4.11.0-0.okd-2023-01-14-152430.tar.gz \
102+
&& wget --no-verbose -O oc.tgz https://github.com/okd-project/okd/releases/download/${OC_VERSION}/openshift-client-linux-${OC_ARCH}${OC_VERSION}.tar.gz \
102103
&& mkdir "oc-dir" \
103104
&& tar -C "oc-dir" -xf oc.tgz \
104105
&& install oc-dir/oc /usr/local/bin \

0 commit comments

Comments
 (0)