forked from w1th0utnam3/fenics_work
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
60 lines (46 loc) · 1.64 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Dockerfile to build the ffcx simd dev env
#
FROM quay.io/w1th0utnam3/dolfinx:latest
WORKDIR /tmp
# Install OpenCL loader
RUN apt-get -qq update && \
apt-get -y --with-new-pkgs -o Dpkg::Options::="--force-confold" upgrade && \
apt-get -y install \
ocl-icd-opencl-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Install PyOpenCL
RUN pip3 install --no-cache-dir pyopencl psutil
# Clone this repository
WORKDIR /local
RUN git clone --recurse-submodules https://github.com/w1th0utnam3/fenics_work.git
# Install Loopy
RUN pip3 install -e /local/fenics_work/main/loopy
# Install FIAT, UFL, dijitso and ffcx
RUN pip3 install -e /local/fenics_work/main/fiat && \
pip3 install -e /local/fenics_work/main/ufl && \
pip3 install -e /local/fenics_work/main/dijitso && \
pip3 install -e /local/fenics_work/main/ffcx
# Build and install dolfinx
RUN cd /local/fenics_work/main/dolfinx && \
mkdir build && \
cd build && \
cmake ../cpp && \
make -j8 && \
make install
# Install dolfinx python package
RUN pip3 install -e /local/fenics_work/main/dolfinx/python
WORKDIR /tmp
# Install dependencies for TSFC code generation
RUN pip3 install six singledispatch pulp networkx
# Install packages for TSFC code generation
RUN git clone https://github.com/firedrakeproject/tsfc.git && \
cd tsfc && \
git fetch && \
git checkout tsfc2loopy && \
pip3 install . && \
cd / && \
rm -rf /tmp/* /var/tmp/*
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
WORKDIR /local/fenics_work/main