Skip to content

Commit

Permalink
Fix missing oc tool, use curl instead of wget
Browse files Browse the repository at this point in the history
See eclipse-che/che#17633

Signed-off-by: Eric Williams <[email protected]>
  • Loading branch information
ericwill committed Aug 13, 2020
1 parent b4689f9 commit 5102898
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ FROM quay.io/eclipse/che-container-tools:1.0.0-8caea0f
ENV ODO_VERSION=v1.2.1 \
OC_VERSION=4.3.3

# plugin executes the commands relying on Bash
RUN dnf install -y wget && \
# install oc
wget -O- https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.3.3/openshift-client-linux-${OC_VERSION}.tar.gz | tar xvz oc -C /usr/local/bin && \
RUN curl -o- -L https://mirror.openshift.com/pub/openshift-v4/clients/ocp/${OC_VERSION}/openshift-client-linux-${OC_VERSION}.tar.gz | tar xvz -C /usr/local/bin oc && \
chmod +x /usr/local/bin/oc && \
#Set the arch
export ARCH="$(uname -m)" && if [[ ${ARCH} == "x86_64" ]]; then export ARCH="amd64"; fi && \
# install odo
wget -O /usr/local/bin/odo https://mirror.openshift.com/pub/openshift-v4/clients/odo/${ODO_VERSION}/odo-linux-${ARCH} && \
curl -o /usr/local/bin/odo https://mirror.openshift.com/pub/openshift-v4/clients/odo/${ODO_VERSION}/odo-linux-${ARCH} && \
chmod +x /usr/local/bin/odo

0 comments on commit 5102898

Please sign in to comment.