cd install
# bring dependencies in
git clone https://github.com/luisfpereira/FInAT/
git clone https://github.com/luisfpereira/ufl/
git clone https://github.com/luisfpereira/tsfc/
# create docker image
docker build -t firedrake-shape .
Note: the repos hosted under luisfpereira
are frozen versions of firedrake
ecosystem.
One of the docker images has a jupyter notebook entry point. To install it:
docker build -t shape-notebook - < dockerfile.jupyter
To launch docker and work with jupyter notebooks:
docker run --rm -i -t -p 8888:8888 --mount src="$(pwd)",target=/home/firedrake/notebooks,type=bind shape-notebook
This binds host notebook folder with docker's notebook folder so that we can persist notebooks across sessions.
You can launch it from any folder. If you want to have access to the notebooks already created, just change directory to notebooks
before running the code above.
cd ../notebooks
P.S. the only predictable issues related with installation lie on the image of firedrake used as base image. There's no obvious workaround, as they only keep the latest version available in docker. If you are having troubles installing or running the code, first try to checkout all their dependencies to commits done around 02/06/2023 (as it is currently done with firedrake
). As last resource, use firedrake's recipe to create their docker image in a commit around that time.