Setup

Setup Docker

Setup CSC 331 Environment

1
2
3
git config --global core.autocrlf false 
git clone -b csc331 https://github.com/ngo-classes/the-one-ring
cd the-one-ring
1
2
3
docker image pull linhbngo/onering:csc331
docker compose up -d
docker compose exec -it csc331 /bin/bash
Screenshot of the terminal view inside csc331 container
1
2
3
whoami
qemu-system-riscv64 --version
riscv64-unknown-elf-gcc --version
Screenshot of the terminal view inside csc331 container

Customize CSC 331 Environment

1
2
docker compose build
docker compose push

You can repeat the tests above to make sure that the custom container is ready to go.