-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
60 lines (51 loc) · 1.57 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
FROM ubuntu:20.04
#############################
# #
# INSTALL COMPILERS #
# #
#############################
RUN apt-get update && apt-get -y install \
bash \
build-essential \
g++ \
gcc \
gfortran \
libz-dev \
python3 \
wget && \
rm -rf /var/lib/apt/lists/* && \
ln -s /usr/bin/python3 /usr/local/bin/python
#########################
# #
# INSTALL MPICH #
# #
#########################
RUN wget -q -O - http://www.mpich.org/static/downloads/3.3.2/mpich-3.3.2.tar.gz | tar -C /tmp -xzf - && \
cd /tmp/mpich-3.3.2 && \
./configure && \
make -j 4 && \
make install && \
rm -rf /tmp/mpich-3.3.2
########################
# #
# INSTALL HDF5 #
# #
########################
RUN wget -q -O - https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.12/hdf5-1.12.0/src/hdf5-1.12.0.tar.gz | tar -C /tmp -xzf - && \
cd /tmp/hdf5-1.12.0 && \
./configure --prefix=/usr/local --enable-parallel --enable-fortran && \
make -j 4 && \
make install && \
rm -rf /tmp/hdf5-1.12.0
#########################
# #
# INSTALL HYPRE #
# #
#########################
RUN wget -q -O - https://github.com/hypre-space/hypre/archive/v2.19.0.tar.gz | tar -C /tmp -xzf - && \
cd /tmp/hypre-2.19.0/src && \
./configure --prefix=/usr/local && \
make -j 4 && \
make install && \
rm -rf /tmp/hypre-2.19.0
ENTRYPOINT ["/bin/bash"]