Add Helm CLI to Docker image #49

Closed
opened 2026-02-24 04:14:24 +00:00 by cpfarhood · 0 comments
cpfarhood commented 2026-02-24 04:14:24 +00:00 (Migrated from github.com)

Problem

The Dev Container image does not include the helm CLI. This prevents users from running helm lint, helm template, or deploying charts from within the container — which is a common workflow when working on Kubernetes projects (including this repo's own chart).

Expected Behavior

helm should be available in the container's $PATH so users can:

  • Lint and template Helm charts during development
  • Deploy/upgrade releases from within the dev environment
  • Use helm in CI validation steps run inside the container

Proposed Solution

Add Helm installation to the Dockerfile, e.g.:

RUN curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash

Or pin a specific version:

ARG HELM_VERSION=3.17.1
RUN curl -fsSL "https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz" | \
    tar -xz --strip-components=1 -C /usr/local/bin linux-amd64/helm && \
    chmod +x /usr/local/bin/helm

Pinning is preferred to match the project's move toward reproducible builds (see Phase 0 changes in c8a7bbc).

Context

Discovered while attempting to run helm lint from within the dev container to validate chart changes.

## Problem The Dev Container image does not include the `helm` CLI. This prevents users from running `helm lint`, `helm template`, or deploying charts from within the container — which is a common workflow when working on Kubernetes projects (including this repo's own chart). ## Expected Behavior `helm` should be available in the container's `$PATH` so users can: - Lint and template Helm charts during development - Deploy/upgrade releases from within the dev environment - Use `helm` in CI validation steps run inside the container ## Proposed Solution Add Helm installation to the Dockerfile, e.g.: ```dockerfile RUN curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash ``` Or pin a specific version: ```dockerfile ARG HELM_VERSION=3.17.1 RUN curl -fsSL "https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz" | \ tar -xz --strip-components=1 -C /usr/local/bin linux-amd64/helm && \ chmod +x /usr/local/bin/helm ``` Pinning is preferred to match the project's move toward reproducible builds (see Phase 0 changes in c8a7bbc). ## Context Discovered while attempting to run `helm lint` from within the dev container to validate chart changes.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: farhoodlabs/devcontainer#49