Skip to content

Commit

Permalink
Adding rosa & ocm clis used for workers-scale (#657)
Browse files Browse the repository at this point in the history
* Adding rosa cli used for workers-scale

* Adding ocm cli too

* Updated commands to match the order

* Updating rosa cli perms as well
  • Loading branch information
vishnuchalla authored Oct 25, 2024
1 parent f75ef39 commit 0e14df6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion prow/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ FROM quay.io/openshifttest/python:3.9
LABEL vendor="Red Hat Inc." maintainer="OCP QE Team"

RUN curl -sSL https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable/openshift-client-linux-amd64-rhel8.tar.gz | tar -xvzf - &&\
mv kubectl /bin
mv kubectl /bin

RUN apt-get update && apt-get install -y gettext-base uuid-runtime jq openssh-client sshpass && \
ln -s /bin/bash /usr/bin/bash && /usr/local/bin/python -m pip install --upgrade pip && pip install virtualenv jq

RUN curl -sSL $(curl -sSL https://api.github.com/repos/openshift/rosa/releases/latest | jq -r ".assets[] | select(.name == \"rosa_Linux_x86_64.tar.gz\") | .browser_download_url") | tar xvzf - &&\
mv rosa /bin && chmod 777 /bin/rosa

RUN curl -sSL $(curl -sSL https://api.github.com/repos/openshift-online/ocm-cli/releases/latest | jq -r ".assets[] | select(.name == \"ocm-linux-amd64\") | .browser_download_url") --output /bin/ocm && chmod 777 /bin/ocm

0 comments on commit 0e14df6

Please sign in to comment.