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
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
sh push_image.sh
Start a sh shell in a local container:
DOCKER_REPO=julianweberdev
IMAGE=dudebox
docker run -i -t "$DOCKER_REPO/$IMAGE" /bin/sh
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