-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In UM2N Dockerfile use firedrake-parmmg as base (#88)
Related to #13. Cuts down the size of UM2N Docker image by about 4GB.
- Loading branch information
Showing
2 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
# Dockerfile for installing Firedrake plus UM2N and its dependencies with CPU support | ||
|
||
# Based on firedrake | ||
FROM firedrakeproject/firedrake-vanilla:latest | ||
FROM ghcr.io/mesh-adaptation/firedrake-parmmg:latest | ||
|
||
USER firedrake | ||
WORKDIR /home/firedrake | ||
|
||
RUN bash -c "source firedrake/bin/activate && \ | ||
pip3 install torch --index-url https://download.pytorch.org/whl/cpu && \ | ||
cd firedrake/src && \ | ||
pip3 install torch --index-url https://download.pytorch.org/whl/cpu && \ | ||
git clone https://github.com/mesh-adaptation/movement.git && \ | ||
git clone https://github.com/mesh-adaptation/UM2N.git && \ | ||
cd movement && \ | ||
make install && \ | ||
python3 -m pip uninstall cffconvert -y && \ | ||
cd ../UM2N && \ | ||
python3 -m pip install -e ." | ||
python3 -m pip install -e UM2N" | ||
|
||
# NOTE: cffconvert is not currently used in UM2N and requires a conflicting | ||
# version of jsonschema with other dependencies. |