Skip to content

Commit 874574a

Browse files
author
Sean Sundberg
authored
Updates url for oc cli to include architecture (#52)
Signed-off-by: Sean Sundberg <seansund@us.ibm.com>
1 parent 4c092bd commit 874574a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ WORKDIR ${HOME}
7878

7979
RUN cat ./image-message >> ./.bashrc-ni
8080

81-
RUN curl -L https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable-${OPENSHIFT_CLI_VERSION}/openshift-client-linux.tar.gz --output oc-client.tar.gz && \
81+
RUN curl -L https://mirror.openshift.com/pub/openshift-v4/$(if [[ "$TARGETPLATFORM" == "linux/arm64" ]]; then echo "arm64"; else echo "amd64"; fi)/clients/ocp/stable-${OPENSHIFT_CLI_VERSION}/openshift-client-linux.tar.gz --output oc-client.tar.gz && \
8282
mkdir tmp && \
8383
cd tmp && \
8484
tar xzf ../oc-client.tar.gz && \

0 commit comments

Comments
 (0)