This repository contains the Docker configuration for the CS1380 course development environment. It is based on Ubuntu and includes Node.js.
Before you begin, ensure you have Docker installed on your system. If you don't have Docker installed, follow the instructions on the official Docker website.
The Docker image is hosted on GitHub Packages. To pull the image (and tag it with a more convenient name), run the following commands:
docker pull ghcr.io/brown-cs1380/container:main
docker tag ghcr.io/brown-cs1380/container:main cs1380-environment
Instead of pulling the docker image, you can clone this repository, navigate to the directory containing the Dockerfile and run the following command:
docker build -t cs1380-environment .
For the ARM64 architecture (aarch64):
docker build --build-arg TARGETPLATFORM="linux/arm64" -t cs1380-environment .
After the image is pulled/built, you can start a container with a shared directory (recommended) using:
docker run --name cs1380-dev -d -v /your/repository/on/host:/usr/src/app cs1380-environment
This will allow you to edit files on your host machine (/your/repository/on/host
— this can be any path) and have them reflected in the container (at /usr/src/app
). You will be running commands inside the container, but editing files in your favorite editor on your host machine.
To start a container without a shared directory, use:
docker run --name cs1380-dev -d cs1380-environment
To interact with the container via a shell, use:
docker exec -it cs1380-dev /bin/bash
When you're done working, you can stop the container using:
docker stop cs1380-dev
To start the container again, use:
docker start cs1380-dev