-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
39 lines (29 loc) · 1.29 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Dockerfile to build the ffcx simd dev env
#
FROM quay.io/w1th0utnam3/docker-dolfinx-base:latest
# Clone this repository
WORKDIR /local
RUN git clone --recurse-submodules https://github.com/w1th0utnam3/fenics_work.git
# Install FIAT, UFL, dijitso and ffcx
RUN pip3 install -e /local/fenics_work/submodules/fiat && \
pip3 install -e /local/fenics_work/submodules/ufl && \
pip3 install -e /local/fenics_work/submodules/dijitso && \
pip3 install -e /local/fenics_work/submodules/ffcx
# Build and install dolfinx
RUN cd /local/fenics_work/submodules/dolfinx && \
mkdir build && \
cd build && \
cmake -G Ninja -DCMAKE_BUILD_TYPE=Developer ../cpp && \
ninja -j3 install
# Install dolfinx python package
RUN pip3 install -e /local/fenics_work/submodules/dolfinx/python
WORKDIR /tmp
# Install dependencies for TSFC code generation
RUN pip3 install six singledispatch pulp networkx
# Install packages for TSFC code generation
RUN pip3 install --no-cache-dir git+https://github.com/firedrakeproject/tsfc.git
RUN pip3 install --no-cache-dir git+https://github.com/coneoproject/COFFEE.git
RUN pip3 install --no-cache-dir git+https://github.com/FInAT/FInAT.git
# Additional packages for development
RUN pip3 install dataclasses cffi pytest
WORKDIR /local/fenics_work/simd