Docker container for the COMP6255 module. The container can be used for any development via Visual Studio Code. The container configuration will automatically install the necessary extensions and configure editor settings.
- Install Docker. I highly recommend Orbstack for MacOS users as it currently uses fewer resources.
- Make sure Docker/Orbstack is running
- Install Visual Studio Code
- Install Dev Containers extension
- Copy the
.devcontainerfolder to the root of your project folder
After following the above instructions open your project in Visual Studio Code and run the Dev Containers: Reopen in Container command.
If the instructions are followed correctly Visual Studio Code should also automatically suggest opening the repository in container mode when the project is loaded.
See here
Make sure that Docker is installed and running.
You need to have the Remote - Containers extension VSCode extension installed and enabled. See here for instructions on how to install it.
Make sure you copied the .devcontainer folder to your projects root folder and that it includes the devcontainer.json file.
- Make sure that the Coq files have been compiled. Run
maketo compile the project files. - If the
_CoqProjectfiles is not located in the project root folder you need to either- Move the files to the root project folder
- Or add the line
"coq.coqProjectRoot": "PATH_TO_COQPROJECT"(in.devcontainer/devcontainer.jsonto point to the directory where_CoqProjectis located. Restarting the docker container is required after this step.
The Docker image used for the devcontainer is built using the Dockerfile in this repository and hosted on the GitHub Container registry. It is based on the coqorg/coq:8.17.1-ocaml-4.14.1-flambda image, which includes the following:
- Debian 11 Slim
- opam 2.1.3
- OCaml 4.14.1
- Coq 8.17.1
Inspired by: