Code Monkey home page Code Monkey logo

docker4c's Introduction

‼️ Very much work in progress!

The container

The Dockerfile contains two container definitions:

  • a CI container which should contain everything necessary to build C++ applications and run their tests
  • a DEV container which inherits the CI container and adds debugging tools like Valgrind, gdb, etc.

The compose file contains a basic setup to run the DEV container locally. Since some IDEs depend on an SSH connection to a container (or for remote development in general), SSHD is started in the service defined by the compose file.

The user for the Docker container is dev. The compose file maps ~/git on the host machine to /home/dev/git in the container, so I suggest that you check out your project there.

Scripts

The scripts directory has a few helpers for easier building and running of the container and executing commands in it. Consider adding the scripts directory to your path for ease of use.

Building the container image

docker4c build (re)builds and tags the container image

Starting

docker4c up starts the container in the background

Stopping

docker4c down stops the running container

Entering the container/Running commands

  • Via ssh: ssh dev@localhost -p 2222 , password is dev
  • Via docker exec: docker4c run
    • without commands: logs into the container via bash
    • with commands: executes the given commands in the container

docker4c run starts the container if it is not active yet and changes to the working directory it is called from if it exists inside the container (including ${HOME} -> /home/dev mapping)

docker4c's People

Contributors

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