/42_devctr

A C development docker environment 🐋. (`norminette` & 42Header included!)

Primary LanguageDockerfileMIT LicenseMIT

42_devctr

GitHub Workflow Status

A C development docker environment. (norminette & 42Header for vim included!)

Preinstalled Utilities

Essentials

  • git
  • vim
  • tmux
  • curl
  • cmake

Debugging

  • gdb
  • valgrind 3.21.0

Formatting

  • norminette
  • 42 Header for vim
  • helios custom tools

Testing

  • gtest
  • francinette

Python3

  • python3-pip
  • python3-venv

Setup

Prerequistes

Ensure that docker is installed beforehand. More information on installing docker could be found here.

Username

Update username in config/vimrc to your own username, which would be used in the 42Header when inserted via vim.

...
let g:user42 = '[YOUR_USERNAME]'
let g:mail42 = '[YOUR_USERNAME]@student.42.fr'
...

Next, ensure that the scripts are executable.

cd 42_devctr
sudo chmod +x build.sh
sudo chmod +x run_devctr.sh

Build

Build the docker image via build.sh. It would take some time to build the image.

cd 42_devctr
./build.sh

Running only paco

Enter the directory to be checked:

cd <your_directory_to check>

After that, run checkme:

checkme

Run the development environment

Once the build has been completed, run the container via run_devctr.sh.

cd 42_devctr
./run_devctr.sh

Tip: To exit the docker image, run exit.

Sample

The workspace directory would be attached to the docker container when running, which contains sample file/structure of how you could import you project into docker. Feel free to add or remove the files inside.

Changelog