Lightweight, Versioned ArgoCD CLI Container for Seamless Kubernetes Application Management
401
Lightweight, Versioned ArgoCD CLI Container for Seamless Kubernetes Application Management
The source code for this image can be found in the kubernetes repository.
The Dockerfile is located in the dockerfiles/k8s-tools/argocd directory.
The image is built using a multi-stage build process, ensuring a minimal footprint and secure.
This repository provides a Docker image under the anvesh35/argocd-cli namespace that packages the ArgoCD CLI into a lightweight, self-contained container. This allows users to manage ArgoCD applications and clusters without installing the ArgoCD CLI locally. The image is built using a multi-stage build process on Alpine Linux, ensuring a minimal footprint and secure execution.
All images are hosted on Docker Hub under the anvesh35/argocd-cli repository.
Tags follow the pattern <version>, for example v2.8.3, to indicate the ArgoCD CLI version included in the image.
git clone https://github.com/anveshmuppeda/kubernetes.git
cd dockerfiles/k8s-tools/argocd
Replace <version> with the desired ArgoCD CLI version (e.g., v2.8.3):
docker build \
--build-arg ARGOCD_VERSION=<version> \
-t anvesh35/argocd-cli:<version> .
Example:
docker build \
--build-arg ARGOCD_VERSION=v2.8.3 \
-t anvesh35/argocd-cli:v2.8.3 .
To use the pre-built image from Docker Hub, pull it using:
docker pull anvesh35/argocd-cli:<version>
Example:
docker pull anvesh35/argocd-cli:v2.8.3
Run the container interactively with your kubeconfig mounted for cluster access:
docker run --rm -it \
--network host \
-v $HOME/.kube/config:/home/argocd/.kube/config:ro \
anvesh35/argocd-cli:<version> bash
This opens a Bash shell with the ArgoCD CLI installed and ready to use.
Run ArgoCD commands directly without entering the container:
docker run --rm \
--network host \
-v $HOME/.kube/config:/home/argocd/.kube/config:ro \
anvesh35/argocd-cli:<version> \
argocd app list
argocd user to adhere to container security best practices.v2.8.3).docker run --rm \
anvesh35/argocd-cli:v2.8.3 \
argocd version
docker run --rm \
--network host \
-v $HOME/.kube/config:/home/argocd/.kube/config:ro \
anvesh35/argocd-cli:v2.8.3 \
argocd app list
Contributions are welcome via GitHub pull requests. Please follow multi-stage build patterns, use semantic versioning for new tool images, and adhere to lowercase, hyphenated naming conventions.
This project is licensed under the MIT License. See the LICENSE file for details.
Content type
Image
Digest
sha256:ba27ef845…
Size
121.5 MB
Last updated
over 1 year ago
docker pull anvesh35/argocd-cli