GithubHelp home page GithubHelp logo

sadhugit / swiss-army-knife Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leodotcloud/swiss-army-knife

1.0 0.0 0.0 926 KB

License: Apache License 2.0

Go 65.86% Shell 18.59% Dockerfile 15.56%

swiss-army-knife's Introduction

Build Status Pulls Twitter

swiss-army-knife

Packing any application with a tiny/bare minimal base image sounds like an awesome/cool/intelligent idea, until things break and there are not tools inside the container to debug the problem at hand. This repo/docker image tries to solve this problem by having a different image with all possible tools needed to debug majority of the problems in a production environment. This image also includes a very small web application for testing/debugging purposes.

Running

# Run and attach to the network namespace of the container to debug
docker run --name swiss-army-knife --net=container:${CONTAINER_ID_TO_DEBUG} -itd leodotcloud/swiss-army-knife

# Exec into the tools container
docker exec -it swiss-army-knife bash

# Show off your ninja skill!
tcpdump -i eth0 -vvv -nn -s0 -SS -XX

Building

This repo can be built locally using drone cli (docs) using exec pipeline type. Since, local builds use the host docker, it's necessary to mark the repo as "trusted" for the "publish" step.

Build all steps:

drone exec --trusted

Build specific steps:

drone exec --include=lint
drone exec --include=test
drone exec --include=version,build
drone exec --trusted --include=publish

To override and specify custom configuration, edit custom.env file and use:

drone exec --trusted --env-file=custom.env

For using secrets locally:

drone exec --secrets-file=secrets.env

swiss-army-knife's People

Contributors

leodotcloud avatar superseb avatar tejeev avatar

Stargazers

Roman 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.