Giter Site home page Giter Site logo

demobox's Introduction

demoBox

demoBox is a tool that allows you to quickly and easily provision multiple Docker containers for SSH login. It's useful for:

  • CTFs
  • Practically teaching about GNU/Linux
  • Testing in multiple environments

Usage

Follow the steps and run the commands

  1. git clone https://github.com/StuckInVim-dev/demoBox
  2. cd demoBox
  3. Place directories with the dockerfiles into the children directory (There is already one in children/demo)
  4. (Optional) If you want to customize the command that starts the container when logging in, make a directory in custom_children and add an extra file to it with the name dosh. This file will be used as the user's shell.
  5. Deploy the container by running docker compose up --force-recreate --build

Requirements

You just need to have docker installed and have your user be in the docker group

If You want to run Docker in Docker (DIND) You will need to have the sysbox runtime installed on your host machine

How it works

The setup of all the containers is done by the setup script, it does the following steps every time when ran:

  1. When the master container is ran, it builds all the container from the passed in children directory (Containers that have already been build will be loaded from cache, because the cache is stored on the host)
  2. Creates a user for each child container (for SSH)
  3. Starts the SSH service.

When anyone tries to connect to the master container with SSH as a user that was created for the child containers, they interactively start the container with the same name as the user they logged in as.

demobox's People

Contributors

stuckinvim-dev avatar honzaled avatar

Stargazers

 avatar Daniel Kroufek avatar  avatar Pavel Vrána avatar Robin Oble avatar

Watchers

 avatar

Forkers

honzaled

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.