Dockerizing Jupyter notebook for cpp
In continuation to my earlier post about running C++ Programs on Jypyter notebook. I just docker-ed those steps using my Github Repo. Cool!
We use docker
to install xeus-cling
underneath. Thanks to xeus-cling!
Reqirements
- Docker v20+ // My Docker Installation Post
- Diskspace upto 5 GB.
- Tested Ubuntu 20.04/Mint 20.3. Docker 20.10.22. Should work on similar OS or better.
# Get my repo.
git clone https://github.com/mrprajesh/jupyter-for-cpp.git
cd jupyter-for-cpp
# Build. Get some Coffee!☕☕☕
$ sudo docker build -t test:latest .
# Run
$ sudo docker run -p 8888:8888 test:latest
# open browser on the host machine: http://127.0.0.1:8888
# You may run the last cell to see the output!
This understanding helped a lot. I can now docker my artifact of our papers. Let’s docker!