Docker image for C++ projects of the Udacity Self-Driving Car Nanodegree (on Docker Hub)
This Docker images comes with all dependencies needed for Udacity's following C++ projects:
- CarND-Extended-Kalman-Filter-Project
- CarND-Unscented-Kalman-Filter-Project
- CarND-Path-Planning-Project
- CarND-MPC-Project
- Docker must be installed on your machine
Go to your project folder, then:
# opens an interactive shell, mounts your current directory into /project and forwards port 4567
docker run -v "`pwd`:/project" -p 4567:4567 -it mreichelt/carnd-cpp
# then inside of the Docker shell, build and run as usual, e.g. for Path Planning:
mkdir -p build && cd build && cmake .. && make -j4 && ./path_planning
I personally only use the Docker image to be able to automatically build my C++ projects with Travis. If you are interested, check out the .travis.yml file of my path planning project.
Big thanks to Youcef Rahal, who created a Docker image that includes much more functionality than just for C++ projects (includes Ubuntu UI, jupyter notebook and much more).