Skip to content
Da (Derek) Kuang edited this page May 17, 2021 · 6 revisions

Welcome to the docker-env wiki!

This document aims to explain the design and implementation of the docker environment.

Docker Image

This image is built from Docker Official Images. It is a minimal install of Ubuntu, so it only includes very limited packages by default. man page, git, and Python need to be installed separately. Moreover, by default, the image only has one root account, so a cit595 user is added to the image.

Usage

Preparations

  1. Install Docker Desktop (version 3.0+)
    • For Windows, we recommend setting up WSL2.
  2. Download this repository
  3. Copy Dockerfile, docker-compose.yml, docker-setup.sh to your course projects folder.

First-time Setup

  1. Run docker-compose build mcit. This will build the docker image whose /vagrant folder will be in sync with your current folder (course project folder)
  2. Run docker-compose run mcit bash. You should now be inside your docker image, with the current folder at /vagrant.
  3. Run ls to make sure that docker-setup.sh is here.

All Future Log-ins

Just open your course projects folder, and run docker-compose run mcit bash.

Clone this wiki locally