You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Garrett Mills 9140414f03
Update 'Dockerfile'
3 years ago
Dockerfile Update 'Dockerfile' 3 years ago
LICENSE Initial commit 9 years ago
README.md adjust image name 9 years ago
build.sh adjust image name 9 years ago
run.sh adjust image name 9 years ago

README.md

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