Skip to content

steinbrueckri/debug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The DEBUG container for any moment in life

Dependabot Status test-build-release Docker Image Version (latest semver) Docker Pulls Docker Image Size (latest semver)

Why

Sometimes in life you need a container in a K8s Cluster or on a Docker machine to debug some things. In this situation this image helps you alot! 🎉 🙌

How

Build locally

docker build -t debug:local . -f src/Dockerfile

Man page

Inside the container you can open the man page with man debug. The man page will give you some hints what is installed and some code snippets.

Run in docker context

Interactive Mode

docker run -it --rm --entrypoint /bin/bash steinbrueckri/debug

Server Mode

docker run -d --rm -p2222:22 -p8080:80 steinbrueckri/debug

Run in K8s context

Interactive Mode

kubectl run --namespace default -i --tty debug --image=steinbrueckri/debug --restart=Never --rm=true -- bash

You can also alias that command within your .zshrcor .bashrc by adding the following line:

alias kdebug='kubectl run --namespace default -i --tty debug --image=steinbrueckri/debug --restart=Never --rm=true -- zsh'

NOTE: Feel free to replace ZSH with the shell of your choice. We have sh, Bash, ZSH, fish

Server Mode

TBD

Configuration

Environment variables

General Options

  • SSHUSERS github users split by whitespaces for publickey deployment

Contributions

  • Contributions are welcome!
  • Give ⭐ - if you want to encourage me to work on a project
  • Don't hesitate create issue for new feature you dream of or if you suspect some bug

Testing

For testing the bats testing framework is used.

git clone https://github.com/steinbrueckri/debug.git
./test/run.bats

Project versioning

Project use Semantic Versioning. We recommended to use the latest and specific release version.

In order to keep your project dependencies up to date you can watch this repository (Releases only) or use automatic tools like Dependabot.

Release

  • create new branch
  • make your changes, if needed
  • commit your changes like
    • Patch Release: fix(script): validate input file to prevent empty files
    • Minor Release: feat(dockerimage): add open for multiple input files
    • Major Release look her