-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added dockerfile for helm oc docker image
- Loading branch information
Kamani, Kevin (extern)
committed
Jul 31, 2023
1 parent
9bfecd0
commit d6d84d7
Showing
3 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
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
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
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/* |
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
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: |