Go to file
2021-02-01 17:27:45 +00:00
build.sh adjust image name 2015-05-03 20:28:01 -07:00
Dockerfile Update 'Dockerfile' 2021-02-01 17:27:45 +00:00
LICENSE Initial commit 2015-05-03 20:12:15 -07:00
README.md adjust image name 2015-05-03 20:28:01 -07:00
run.sh adjust image name 2015-05-03 20:28:01 -07:00

Dockerfiles for building with g++/gcc on Ubuntu with valgrind and gdb

Getting Valgrind to work is a pain on non-Linux systems like Windows and MacOS. dliu/ubuntu-gcc-valgrind is an image that combines Valgrind with the normal build chains for C/C++ including gdb, gcc, g++, etc.

Usage:

Open a terminal into your container to use gcc/valgrind, you can do:

docker run --rm -it -v `pwd`:/app dliu/ubuntu-gcc-valgrind /bin/bash
root@xxxx# <enter commands here>

You can also directly invoke commands (gcc, valgrind, etc) like this:

docker run --rm -it -v `pwd`:/app dliu/ubuntu-gcc-valgrind gcc -c hello.c
docker run --rm -it -v `pwd`:/app dliu/ubuntu-gcc-valgrind valgrind ./a.out