This repository contains the base Dockerfiles used for compiling and running SaC programs.
Pre-built Docker images are available on DockerHub.
For an interactive, no-install experience, you can try out one of our docker images available through GitHub or directly on DockerHub. Before you start, install Docker or Docker desktop and make sure you can run the hello world example.
For first time users we recommend the interactive Jupyter Notebook environment.
In a terminal, run the following command start the SaC Jupyter container.
Multiple URLs will appear, open the one starting with 127.0.0.1.
sudo docker run -p 8888:8888 sacbase/sac-jupyter-notebook-p 8888:8888maps port 8888 from the host to port 8888 on the container.
Most likely you will want to access an existing notebook on your system. You can use a bind mount for this. Open a terminal and change directory to where your existing notebook is. Then, run the following command.
sudo docker run --rm -p 8888:8888 -v "$(pwd):/home/jovyan/work" sacbase/sac-jupyter-notebook--rmremoves the container once it is done running.-vtells Docker to mount your current working directory to/home/jovyan/workinside the container. The Jupyter image's root directory is/home/jovyanand you can only access or save notebooks to that directory in the container.