This is an experimental docker image for COMP2521, intended to allow students to complete their work locally.
See the documentation.
Run the 2521-up command.
Run the 2521-sh command.
Run the 2521-code command.
To get the best editor experience, it is recommended to install a few VS Code extensions within the container:
clangdfor C editor support.
Run the 2521-down command. It is recommended to shut down the environment
when it is not in use to reduce energy consumption.
Run the 2521-update command. This will rebuild the image after using Git to
pull changes.
Within the environment, use the cse-fetch command alongside the path to the
.zip file to download. It will be downloaded and extracted to a directory
named starter_code within your current directory.
Within the environment, use the cse-push command to upload the contents of
the current directory to CSE. It will be placed within
/home/${ZID}/2521-push/${curr_dir}.
You can start an SSH session by running the cse command.
-
The
docker-compose.ymlis configured to forward the host system's SSH agent to the environment. This means that setting up SSH access within the host environment will also grant access within the Docker environment. -
In order to give correct access permissions for the
sshdirectory, the host user's~/.sshdirectory is symlinked toconfig/ssh. At runtime, this is added as a Docker volume mounted at~/.sshin the environment. -
In addition, during setup, the user's zID is stored to
home/.zid. This is used to configure thecse*commands within the environment.
-
A
homedirectory is created at the root of this repo during setup. -
This is added to the environment as a Docker volume mounted as their home directory.
Run 2521-uninstall and follow its prompts.