Docker Build for Cling (C++ Interpreter)

Usage

Get the Image from Docker Hub

# get the build from docker hub
docker pull maddouri/cling-ubuntu-docker
# run it ! (the entry point is cling)
docker run -it maddouri/cling-ubuntu-docker

Build It Yourself

# get the Dockerfile
git clone https://github.com/maddouri/cling-ubuntu-docker.git
cd cling-ubuntu-docker
# depending on your machine, this might take a while to finish building
docker build -t my_cling_image .
# run it ! (the entry point is cling)
docker run -it my_cling_image

Notes

Defining Aliases

alias cling='docker run -it maddouri/cling-ubuntu-docker'

Accessing the Host's File System

As with any other Docker images, you can access your file system from the container by attaching volumes to it:

Automated Builds

After trying both Docker Hub's "Automated Builds" and Travis CI, it turns out that the images can't be built using those services -- in both cases, the build requires more time than the allowed amount.

For this reason, I will be pushing non-automated builds to Docker Hub. (until I figure out a better solution)

License

The content of the Github repository is available under the 3-Clause BSD license.