Sign inSign up

steinbrueckri/debug

By steinbrueckri

•Updated 7 days ago

Ref.: https://github.com/steinbrueckri/debug

Image
0

9.7K

steinbrueckri/debug repository overview

⁠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

For convinience you can use the shell you like the most, you can choose the following options:

  • zsh
  • fish
  • bash
  • sh
⁠Build locally
docker build -t debug:local . -f src/Dockerfile
⁠Run in docker context
⁠Interactive Mode
docker run -it --rm --entrypoint /bin/zsh
⁠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 -- zsh

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 :star: - 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
./tests/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⁠

Tag summary

Content type

Image

Digest

sha256:3037cb20c…

Size

376.3 MB

Last updated

7 days ago

docker pull steinbrueckri/debug