This provides a docker image for usage within deployment automation. It provides a preinstalled kubectl, heroku, helm2 and helm3 binaries.
Ensure you are logged in to your docker repository. You can adjust the target repository by adjusting the DOCKER_REPO env variable in build.sh. You can also adjust the kubectl and helm client versions to install here. The build script will build the image locally and push it to the configured repository.
bash build.sh
Start a bash shell in a local container:
DOCKER_REPO=julianweberdev
IMAGE=circleci-kubectl-helm
TAG=latest
docker run -i -t "$DOCKER_REPO/$IMAGE:$TAG" /bin/bash
Start a bash shell in a local container:
DOCKER_REPO=julianweberdev
TAG=latest
IMAGE=circleci-kubectl-helm:$TAG
DEPLOYMENT=circleci-kubectl-helm-container
kubectl run -i -t --generator=deployment/apps.v1 --image=$DOCKER_REPO/$IMAGE:$TAG $DEPLOYMENT
# remove container afterwards
kubectl delete deployments/$DEPLOYMENT