initial Dockerfile commit

pull/1/merge
David Liu 9 years ago
parent ce883fcf97
commit f01f68abfa

@ -0,0 +1,12 @@
#use 32-bit ubuntu 12.04 required by valgrind. 64-bit has some known issues
from shawn/ubuntu-precise-i386
MAINTAINER David Liu <email4dliu@gmail.com>
LABEL Description="Do your C/C++ development in Docker container. Based on Ubuntu, and added build-essential and valgrind so you can use g++/gcc/gdb/valgrind."
#adds gcc valgrind
run apt-get install -y build-essential valgrind
WORKDIR /app
CMD /bin/bash

@ -0,0 +1,6 @@
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.

@ -0,0 +1,3 @@
# To build the image from Dockerfile, use this command:
#docker build -t="dliu/valgrind" .

@ -0,0 +1,4 @@
# The workdir is set to be /app. Run your image mounting your
# application directory to /app like below:
docker run --rm -it -v `pwd`:/app dliu/valgrind /bin/bash
Loading…
Cancel
Save