Skip to content

Commit

Permalink
feat: added dockerfile for helm oc docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamani, Kevin (extern) committed Jul 31, 2023
1 parent 9bfecd0 commit d6d84d7
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)|

14 changes: 14 additions & 0 deletions helm-oc/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/*
37 changes: 37 additions & 0 deletions helm-oc/README.md
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit d6d84d7

Please sign in to comment.