The deployment of this part of Docker comes from https://github.com/XieGuochao/csapp
CS:APP is an excellent material for learning computer systems and systems programming. However, it is inconvenient to use a virtual machine for self-learners. In this repo, I build a Docker image with most pre-requistes installed and attached all lab materials in it. You can directly use this Docker image xieguochao/csapp.
The original materials of CS:APP is from CMU: CS:APP labs.
The code server is based on https://github.com/cdr/code-server.
git clone --branch 1.8 https://github.com/XieGuochao/csapp.git
.cd csapp
.
cd csapp-docker
docker build -t csapp .
.
Under the root directory.
docker run -p 7777:7777 -v "$PWD/labs:/home/csapp/project" csapp
Then you can access your labs via browser http://localhost:7777/ with password csapp
. You can find all files in labs
under /home/csapp/project
.
If your file is in Windows, you may encounter the error
bash: ./driver.pl: /usr/bin/perl^M: bad interpreter: No such file or directory
when running
./driver.pl.
You can try running this in the terminal.
sed -i 's/\r$//' ./driver.pl