Coder Social home page Coder Social logo

debug-container's Introduction

Debug-Container

Container based on Debian with debug tools added. (--platform=linux/amd64) Its big :( 4.6GB

  • aws-cli
  • az azure cli (Using pip --break-system-packages)
  • rust + cargo
  • nodejs(v20) nvm
  • ansible (Using pip --break-system-packages)
  • terraform -> [tfswitch + aztfexport(2024-04-16 v0.14.1) + shell scripts]
  • network tools: ssh, tcpdump, ngrep, dnsutils(dig), etc.

Usage example: To attach the container to running k8s pod to debug

  • Requires k8s > 2.24 (2021)
  1. Get the name of the pod and the container in the pod to attach to
  2. POD_NAME="debug"
  3. NS="vigor"
  4. Create NS if it does not exist. kubectl create namespace ${NS}
  5. Run container in k8s
    1. run full debug container: kubectl run -n ${NS} ${POD_NAME} -it --image=docker.io/diepes/debug:latest -- bash
    2. attache debug container to existing container e.g. ingress kubectl debug -n ${NS} ${POD_NAME} -it --image=docker.io/diepes/debug:latest [ --target <ContainerNameInPod> ] -- sh ```` kubectl debug -n tm-infra -it tm-infra-shared-ingress-nginx-controller-797ccc698d-4hmgb --image=debian:stable --target=controller -- bash```
    3. run local debug container docker run --rm -it docker.io/diepes/debug:latest bash
    4. run aws container docker run --rm -it amazon/aws-cli --version

Software in container

  • ansible
  • aws cli
  • azure cli
  • git
  • rust
  • ssh
  • nvm (nodejs)
  • terraform (tfswitch + aztfexport)

debug-container's People

Contributors

diepes avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.