Skip to content

Commit

Permalink
🎨 Add oc to aws image
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarolop committed Dec 12, 2024
1 parent 1c5d2be commit c909a81
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion dockerfile-aws/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
FROM registry.access.redhat.com/ubi9-minimal:latest

# Install dependencies
RUN microdnf install -y unzip \
RUN microdnf install -y unzip tar gzip \
&& microdnf clean all

# Install AWS CLI
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
&& unzip awscliv2.zip \
&& rm -rf awscliv2.zip \
&& ./aws/install

# Install OpenShift CLI (oc)
ARG OC_VERSION=latest
RUN curl -L "https://mirror.openshift.com/pub/openshift-v4/clients/ocp/${OC_VERSION}/openshift-client-linux.tar.gz" -o "openshift-client-linux.tar.gz" \
&& tar -xvzf openshift-client-linux.tar.gz -C /usr/local/bin/ \
&& chmod +x /usr/local/bin/oc \
&& rm -f openshift-client-linux.tar.gz

# Verify installations
RUN aws --version && oc version

0 comments on commit c909a81

Please sign in to comment.