Git Product home page Git Product logo

container-debug-support's Introduction

experimental

Container Runtime Debugging Support Images (aka Duct Tape)

This repository defines a set of container images that package the language runtime dependencies required to enable step-by-step debugging of apps with skaffold debug. These container images are suitable for use as initContainers on a pod. When executed, each container image copies these dependencies to /dbg/<runtimeId>.

The idea is that skaffold debug will transform k8s manifests to make available any support files required to debug specific language runtimes. For example, a Kubernetes podspec would be transformed to

  • create a volume to hold the debugging support files
  • run one or more of these images as initContainers to populate this volume, mounted as /dbg
  • mount this volume on the applicable containers as /dbg with suitably transformed command-line in the entrypoint and arguments

Current language runtimes:

  • go: provides Delve
  • python: provides ptvsd, a debug adapter that can be used for VS Code and more, for Python 2.7 and 3.5+
  • nodejs: provides a node wrapper that propagates --inspect args to the application invokation
  • netcore: provides vsdbg for .NET Core

Distribution

The latest released images, which are used by skaffold debug, are available at:

gcr.io/k8s-skaffold/skaffold-debug-support

Images from a particular release are available at:

gcr.io/k8s-skaffold/skaffold-debug-support/<release>

Images from the latest commit to HEAD are available at our staging repository:

us-central1-docker.pkg.dev/k8s-skaffold/skaffold-staging/skaffold-debug-support

You can configure Skaffold to use a specific release or the staging repository with the following:

skaffold config set --global debug-helpers-registry <repository>

Contributing

See CONTRIBUTING for how to contribute!

container-debug-support's People

Contributors

110y avatar briandealwis avatar coollog avatar loosebazooka avatar quoctruong avatar renzodavid9 avatar sethrylan avatar shaxbee avatar tadcordle avatar

Watchers

 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.