Skip to content

Docker and CMake examples to start developing dockerized projects

Notifications You must be signed in to change notification settings

carlobiermann/docker-dev-enviroments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

docker-dev-enviroments

The code in this repository is mainly from Dmitry Danilov's article on Dockerized build environments for C/C++ projects

  1. Download this repository:
$ git clone git@github.com:carlobiermann/docker-dev-enviroments.git
  1. Build the docker container:
  • Make sure to have docker installed on your system
  • Run
$ cd cpp-dev-env/docker-files/
$ docker build -t cb_cpp_build_env/cpp_build_env_example:0.1 -f DockerfileExample .
  1. Run the docker container and mount the current directory:
$ cd ../../
$ docker run -it --rm --name=example_container \
	--mount type=bind,source=${PWD},target=/src \ # Mount the current directory
	example/example_build:0.1 \
	bash
  1. Run the docker container for remote development on port 2222
docker run --name=test_container -d --cap-add sys_ptrace -p127.0.0.1:2222:22 cb_cpp_build_env/cpp_build_env:0.5

See also here

About

Docker and CMake examples to start developing dockerized projects

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published