/dudebox

Small handy Docker image for debugging within docker/kubernetes.

Primary LanguageShellMIT LicenseMIT

DUDEBOX

Small handy Docker image for debugging within docker/kubernetes. Based on alpine installing sysop tools.

----> https://cloud.docker.com/repository/registry-1.docker.io/julianweberdev/dudebox

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.

sh build.sh

Push to dockerhub

sh push_image.sh

Using the image locally

Start a sh shell in a local container:

DOCKER_REPO=julianweberdev
IMAGE=dudebox
docker run -i -t "$DOCKER_REPO/$IMAGE" /bin/sh

Run the image locally with kubernetes

Start a sh shell in a local container:

DOCKER_REPO=julianweberdev
IMAGE=dudebox:latest
DEPLOYMENT=dudebox-deployment

kubectl run -i -t --generator=deployment/apps.v1 --image=$DOCKER_REPO/$IMAGE $DEPLOYMENT

# remove container afterwards
kubectl delete deployments/$DEPLOYMENT
# view all running pods
kubectl get pods --all-namespaces