An open API service indexing awesome lists of open source software.

https://github.com/anqorithm/docker-oc-helm

This Docker image contains both OpenShift Command Line Interface (oc) and Helm package manager, making it useful for container orchestration and Kubernetes/OpenShift operations.
https://github.com/anqorithm/docker-oc-helm

cli docker helm oc openshift

Last synced: 2 months ago
JSON representation

This Docker image contains both OpenShift Command Line Interface (oc) and Helm package manager, making it useful for container orchestration and Kubernetes/OpenShift operations.

Awesome Lists containing this project

README

          

# Docker Image with OpenShift CLI and Helm

![OpenShift CLI](https://img.shields.io/badge/OpenShift%20CLI-oc-blue)
![Helm](https://img.shields.io/badge/Helm-helm-blue)

This Docker image contains both OpenShift Command Line Interface (oc) and Helm package manager, making it useful for container orchestration and Kubernetes/OpenShift operations.

## Contents

- OpenShift CLI (oc)
- Helm

## Building the Image

```bash
docker build -t oc-helm-image -f docker/Dockerfile .
```

## Usage

### Running Single Commands
```bash
docker run --rm oc-helm-image oc version
docker run --rm oc-helm-image helm version
```

### Running as a Persistent Container
To keep the container running and execute commands inside it:

```bash
# Start the container in detached mode
docker run -d --name oc-helm-container oc-helm-image tail -f /dev/null

# Execute commands in the running container
docker exec oc-helm-container oc version
docker exec oc-helm-container helm version

# Stop and remove the container when done
docker stop oc-helm-container
docker rm oc-helm-container
```

## Tags

- `latest`: Contains the latest stable versions of oc and helm