Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.05 KB

README.md

File metadata and controls

38 lines (30 loc) · 1.05 KB

Docker Image for tekton automation

This provides a docker image for usage within deployment automation. It provides a preinstalled java mvn kubectl helm tkn mysql-client jq git-crypt...

Building the image

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

Using the image locally

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

Run the image locally with kubernetes

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