๐พ + ๐ = โค๏ธ Dockerized Pintos of CS140 by Stanford.
Run and check your pintos code inside a docker
container.
$ docker pull nurseiit/pintos:latest
$ docker run -it --volume $PWD/project1:/pintos nurseiit/pintos:latest
Please note that the directory format is
--volume <local dir>:/<mount dir in docker>
.
Make sure that the directory you are mounting contains
/src
as a first child. Otherwise it will conflict withPATH
variables.
$ docker ps -a # list all processes
$ docker rm 5e22515a0f51 # remove container
For the qemu
simulator to work as intended, one needs to do the
following to fix an ACPI bug as described
here
under "Troubleshooting".
$ sed -i '/serial_flush ();/a outw( 0x604, 0x0 | 0x2000 );' /pintos/src/devices/shutdown.c
- Use volumes
- Configure
qemu
simulator (partially) - Make
qemu
work out of the box