From d6d84d7f388d62f3e8b59016e69c6cc30541c95e Mon Sep 17 00:00:00 2001 From: "Kamani, Kevin (extern)" Date: Mon, 31 Jul 2023 16:14:30 +0200 Subject: [PATCH] feat: added dockerfile for helm oc docker image --- README.md | 2 ++ helm-oc/Dockerfile | 14 ++++++++++++++ helm-oc/README.md | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 helm-oc/Dockerfile create mode 100644 helm-oc/README.md diff --git a/README.md b/README.md index 51ab7dc..c4aefab 100644 --- a/README.md +++ b/README.md @@ -9,3 +9,5 @@ The table gives you an overview of the contents of this repository. |---|---|---| |[kubectl](./kubectl/README.md)|Extended kubectl image to make easier deployments from CI/CD systems|[![Docker Pulls](https://img.shields.io/docker/pulls/demtag/kubectl)](https://hub.docker.com/r/demtag/kubectl)| |[otel-java-agent](./otel-java-agent/README.md)|Simple container image holding the [OpenTelemtry Java Agent](https://github.com/open-telemetry/opentelemetry-java-instrumentation) that can be used for creating Kubernetes Sidecars|[![Docker Pulls](https://img.shields.io/docker/pulls/demtag/otel-javaagent)](https://hub.docker.com/r/demtag/otel-javaagent)| +|[helm-oc](./helm-oc/README.md)|Docker Image which contains Helm and Openshift Container Platform CLI|[![Docker Pulls](https://img.shields.io/docker/pulls/demtag/helm-oc)](https://hub.docker.com/r/demtag/otel-javaagent)| + diff --git a/helm-oc/Dockerfile b/helm-oc/Dockerfile new file mode 100644 index 0000000..30c5920 --- /dev/null +++ b/helm-oc/Dockerfile @@ -0,0 +1,14 @@ +FROM ubuntu:22.04 + +RUN apt-get update +RUN apt install curl -y +RUN curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 +RUN chmod 700 get_helm.sh +RUN ./get_helm.sh +RUN rm -r get_helm.sh +RUN curl -o openshift-cli-tar.gz https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/4.10.58/openshift-client-linux.tar.gz +RUN tar -zxvf openshift-cli-tar.gz +RUN mv oc /usr/local/bin +RUN rm -r openshift-cli-tar.gz kubectl README.md +RUN apt remove curl -y --purge +RUN rm -rf /var/lib/apt/lists/* diff --git a/helm-oc/README.md b/helm-oc/README.md new file mode 100644 index 0000000..80f0c07 --- /dev/null +++ b/helm-oc/README.md @@ -0,0 +1,37 @@ +# Helm-oc Docker Image +This repository contains a Docker image based on the latest stable version of Ubuntu, designed to provide an environment with Helm, OpenShift CLI (oc), and OpenShift Client tools installed. This image is useful for users who need a lightweight containerized environment for managing Kubernetes clusters, deploying applications using Helm, and interacting with OpenShift-specific resources. + + +## Docker Image Details + +- **Base Image**: Ubuntu (latest stable version) +- **Package Managers**: Helm, OpenShift CLI (oc) +- **Image Size**: The size of the image is kept minimal to reduce resource consumption. + + +## Included Tools + +### 1. Helm + +[Helm](https://helm.sh) is a package manager for Kubernetes that helps you manage Kubernetes applications. With Helm, you can define, install, and upgrade even the most complex Kubernetes applications. + +### 2. OpenShift CLI (oc) + +The OpenShift CLI (`oc`) is a command-line tool that allows developers and administrators to interact with and manage OpenShift clusters. It provides a wide range of functionalities for deploying, managing, and monitoring applications running on OpenShift. + +## Getting Started + +To use this Docker image, you must have Docker installed on your system. + +### Pulling the Image + +You can pull the latest version of the image from Docker Hub using the following command: + + +You can pull the latest version of the image from Docker Hub using the following command: + +`docker pull demtag/helm-oc:latest` + +### Running the Container + +Once you have the image pulled, you can run a container with the Helm, OpenShift CLI, and OpenShift Client tools available using the following command: