-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
executable file
·55 lines (46 loc) · 1.17 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
# Dockerfile
# Düsseldorf Advanced Material Simulation Kit (DAMASK)
# (c) 2016-18 ICMEaix RWTH Aachen University
FROM centos:7
MAINTAINER Lukas Koschmieder <lukas.koschmieder@rwth-aachen.de>
### Common Dependencies
RUN yum install -y gcc gcc-c++ gcc-gfortran perl make \
&& yum install -y python numpy scipy \
&& yum install -y bc bzip2 which \
&& yum clean all
### PETSc
WORKDIR /tmp
RUN curl \
--location http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-3.6.4.tar.gz \
--output petsc.tar.gz \
&& tar -xvf petsc.tar.gz \
&& rm -f petsc.tar.gz \
&& pushd petsc*/ \
&& ./configure \
--prefix=/opt/petsc \
--download-fblaslapack \
--download-fftw \
--download-hdf5 \
--download-openmpi \
--with-cc=gcc \
--with-cxx=g++ \
--with-fc=gfortran \
&& make all \
&& make install \
&& popd \
&& rm -rf /tmp/petsc*
### DAMASK
ENV PETSC_DIR /opt/petsc
ENV DAMASK_DIR /opt/damask
WORKDIR /tmp
RUN curl \\
--location https://damask.mpie.de/pub/Download/Current/DAMASK-2.0.1.tar.bz2 \
--output DAMASK.tar.bz2 \
&& tar -xjvf DAMASK.tar.bz2 \
&& rm -f DAMASK.tar.bz2 \
&& mv DAMASK $DAMASK_DIR
WORKDIR $DAMASK_DIR
RUN source ./DAMASK_env.sh \
&& make spectral \
&& make install
COPY ./env.sh /env.sh