Created
August 2, 2021 19:52
-
-
Save jgleonard/e96ae71a1b728c0461d90e87deced4bd to your computer and use it in GitHub Desktop.
Dockerfile for Centos image with all utils needed for ROSA, AWS, OCP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:8 | |
# Grab dependencies | |
RUN yum -y update && yum -y install python3-pip golang git | |
# Install AWS CLI | |
RUN pip3 install awscli | |
# Install ROSA CLI | |
RUN curl https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/rosa/latest/rosa-linux.tar.gz | tar -xzC /usr/local/bin rosa && /usr/local/bin/rosa completion > /etc/bash_completion.d/rosa | |
# Install OCP CLI | |
RUN curl https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable/openshift-client-linux.tar.gz | tar -xzC /usr/local/bin oc && /usr/local/bin/oc completion bash > /etc/bash_completion.d/oc | |
# Install Cloud Credential Operator | |
RUN git clone https://github.com/openshift/cloud-credential-operator.git && cd cloud-credential-operator/cmd/ccoctl && go build . && mv ccoctl /usr/local/bin/ccoctl && cd && rm -rf /cloud-credential-operator |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment