Package, install and upgrade helm charts with docker!
The dipsas/helm image includes helm and kubectl binaries, and makes it possible to package, install and upgrade helm charts inside of a container. In addition, it is built on top of the python docker image, so that it is possible to execute a python script instead of a shell script.
$PWD
is your full present working directory path.
docker run -it -v $PWD/charts/:/charts -w /charts dipsas/helm helm package my-helm-chart
Hint: Push a chart with DockerFeed.
docker run -it -v $PWD/charts/:/charts -w /charts dipsas/helm kubectl config view
Change kubectl config in ./charts/.kube/config with your own kube config. Usually you can find your personal kube config with docker desktop on windows at:
- C:\Users\my-user\.kube\config
docker run -it -v $PWD/charts/:/charts -w /charts dipsas/helm helm install my-helm-chart ./my-helm-chart
Change kubectl config in ./charts/.kube/config with your own kube config. Usually you can find your personal kube config with docker desktop on windows at:
- C:\Users\my-user\.kube\config
Note! It is possible to execute a python script instead if a shell script.
docker run -it -v $PWD/charts/:/charts -w /charts dipsas/helm ./install.sh
docker run -it -v $PWD/charts/:/charts -w /charts dipsas/helm ./upgrade.sh
docker run -it -v $PWD/charts/:/charts -w /charts dipsas/helm ./uninstall.sh
The nginx in ./charts/my-helm-chart will be reachable on:
-
Requirements:
- python & pip
- pip install DockerBuildManagement
-
Build & Publish
dbm -build -publish