Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.
/ docker-valgrind Public archive

A docker container to run Valgrind and build C/C++ projetcs

License

Notifications You must be signed in to change notification settings

agaliste/docker-valgrind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Valgrind docker container

A container that holds Valgrind, has all the requirements to build C/C++ projetcs, use CMake and is compatible with M1 Macs too!! 🥳

What does the container include?

This container installs all the necessary packages to build and compile a C/C++ project and run Valgrind, in a debian:bullseye-slim image.

Packages installed:

build-essential
cmake 
valgrind
libcppunit-dev

How to use

Build the container:

git clone https://github.com/somedevv/docker-valgrind.git
cd docker-valgrind
docker build .

Run the container from Docker Desktop (Images -> somedevv/valgrind) and:

  • Configure a volume:
    • Host Path: Were you want to run Valgrind (Path to were your project is located in your machine)
    • Container path: /valgrind
  • Name your container (optional but recommended)

f

Then get into the container by running the following command:

docker container start CONTAINER_NAME
docker exec -it CONTAINER_NAME bash

License

The GNU General Public License v3 (GPL-3)

Copyright © 2022 somedevv