This provides a docker image for usage within deployment automation. It provides a preinstalled java mvn kubectl helm tkn mysql-client jq git-crypt...
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=ubuntu-ci
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=ubuntu-ci
DEPLOYMENT=ubuntu-ci-helm-container
kubectl run -i -t --generator=deployment/apps.v1 --image=$DOCKER_REPO/$IMAGE:$TAG $DEPLOYMENT
# remove container afterwards
kubectl delete deployments/$DEPLOYMENT