Skip to content

Commit 6a5f4b1

Browse files
authored
Add Thetis back to Docker images (#4225)
* Add Thetis back to firedrake Docker image * Reenable Thetis notebooks * Add icepack back to firedrake container
1 parent 1980b08 commit 6a5f4b1

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

docker/Dockerfile.firedrake

+3-6
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,16 @@ RUN pip install --verbose \
88
jax ngsPETSc torch vtk
99

1010
# Install Firedrake apps
11-
# FIXME: Thetis and icepack use legacy installation methods and are not installable
12-
# (Thetis fixed in https://github.com/thetisproject/thetis/pull/392)
13-
# Once they are fixed the following lines can be added back in:
14-
# -e git+https://github.com/thetisproject/thetis.git#egg=thetis
15-
# -e git+https://github.com/icepack/icepack.git#egg=icepack
1611
RUN pip install --verbose --src /opt \
1712
-e git+https://github.com/firedrakeproject/asQ.git#egg=asQ \
1813
-e git+https://bitbucket.org/pefarrell/defcon.git#egg=defcon \
1914
-e git+https://bitbucket.org/pefarrell/fascd.git#egg=fascd \
2015
-e git+https://github.com/FEMlium/FEMlium.git#egg=FEMlium \
2116
-e git+https://github.com/g-adopt/g-adopt.git#egg=gadopt \
2217
-e git+https://github.com/firedrakeproject/gusto.git#egg=gusto \
23-
-e git+https://github.com/firedrakeproject/Irksome.git#egg=Irksome
18+
-e git+https://github.com/firedrakeproject/Irksome.git#egg=Irksome \
19+
-e git+https://github.com/icepack/icepack.git#egg=icepack \
20+
-e git+https://github.com/thetisproject/thetis.git#egg=thetis
2421

2522
# Install some other niceties
2623
RUN apt-get update \

docker/Dockerfile.jupyter

+6-7
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@ RUN mkdir /opt/firedrake-notebooks \
1414
done
1515

1616
# Now do the same for thetis.
17-
# FIXME: Add these back in once Thetis is in the firedrake container
18-
# RUN mkdir thetis-notebooks \
19-
# && cp -r thetis/demos/* thetis-notebooks/ \
20-
# && rm thetis-notebooks/*.py \
21-
# && for file in thetis-notebooks/*.ipynb; do \
22-
# jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace $file; \
23-
# done
17+
RUN mkdir /opt/thetis-notebooks \
18+
&& cp -r /opt/thetis/demos/* /opt/thetis-notebooks/ \
19+
&& rm /opt/thetis-notebooks/*.py \
20+
&& for file in /opt/thetis-notebooks/*.ipynb; do \
21+
jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace $file; \
22+
done
2423

2524
CMD ["jupyter", "nbclassic", "--ip", "0.0.0.0", "--no-browser", "--allow-root"]

0 commit comments

Comments
 (0)