This is a standalone docker image for the PLFa book. If you would like to experiment with the PLFA book and Agda, but you don't have the time to go into the details of configuring the Stack Haskell ecosystem, compile Agda, and configure Emacs as it described in the PLFA book website, this is an out of the box solution for you. Bare in mind, everything in this docker image is terminal based, which gives an exotic look to Emacs.
- Install
dockerfor the operating system. (docker.com) - Free up 3GB space for the image.
- Pull the docker image:
docker pull andorp/plfa-club - OR alternatively build your own image. See
Build your own imagesection.
- Modify the
./build.shfile to change the name of the docker image fromandorp/plfa-clubto something else. - Free up additional 7GB as during the installation this extra amount will be used.
This docker image can be used without the PLFA repository, but I designed its usecase around having the PLFA
repository checked out. The minimum one needs is a directory where one collects the solutions for the exercises,
say a working directory. This working directory will be attached under the /plfa/book within the docker session.
- Create a folder where you check out the PLFA repository OR your solution directory.
- Copy the
./run.shfile to yourplfaworking directory. (If you built your own image use image name you have had given) - Now you should have an active docker session. All the changes you make under the
/plfa/bookdirectory will be persisted on your host machine. - Open one of the chapters you work on:
emacs src/plfa/partX/chaterY.lagda.md - Emacs agda-mode, agda commands should work