Skip to content

Commit

Permalink
added updated openshift cli
Browse files Browse the repository at this point in the history
  • Loading branch information
sinamna committed Aug 6, 2024
1 parent ad8679f commit 2315cd5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions openshift-cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Use a Debian base image
FROM debian:stable-slim

# Set the desired version of the OpenShift CLI
ENV OC_VERSION=latest

# Install dependencies
RUN apt-get update && apt-get install -y curl tar && rm -rf /var/lib/apt/lists/*

# Download and install the OpenShift CLI
RUN curl -LO https://mirror.openshift.com/pub/openshift-v4/clients/oc/${OC_VERSION}/linux/oc.tar.gz && \
tar -xzvf oc.tar.gz && \
mv oc /usr/local/bin/ && \
rm oc.tar.gz

# Verify the installation
RUN oc version

0 comments on commit 2315cd5

Please sign in to comment.