-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
executable file
·99 lines (83 loc) · 2.61 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
FROM dafoam/prerequisites:latest
# Swith to dafoamuser
USER dafoamuser
ENV HOME=/home/dafoamuser
# f2py
ENV PATH=$PATH:$HOME/.local/bin
# OpenMPI-1.10.7
ENV MPI_INSTALL_DIR=$HOME/packages/openmpi-1.10.7/opt-gfortran
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MPI_INSTALL_DIR/lib
ENV PATH=$MPI_INSTALL_DIR/bin:$PATH
# Petsc-3.11.4
ENV PETSC_DIR=$HOME/packages/petsc-3.11.4
ENV PETSC_ARCH=real-opt
ENV PATH=$PETSC_DIR/$PETSC_ARCH/bin:$PATH
ENV PATH=$PETSC_DIR/$PETSC_ARCH/include:$PATH
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PETSC_DIR/$PETSC_ARCH/lib
ENV PETSC_LIB=$PETSC_DIR/$PETSC_ARCH/lib
# CGNS-3.3.0
ENV CGNS_HOME=$HOME/packages/CGNS-3.3.0/opt-gfortran
ENV PATH=$PATH:$CGNS_HOME/bin
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CGNS_HOME/lib
# create the repo directory
RUN mkdir -p $HOME/repos
# MACH framework
RUN cd $HOME/repos && \
git clone https://github.com/mdolab/baseclasses && \
cd baseclasses && \
pip install .
RUN cd $HOME/repos && \
git clone https://github.com/mdolab/pyspline && \
cd pyspline && \
cp config/defaults/config.LINUX_GFORTRAN.mk config/config.mk && \
make && \
pip install .
RUN cd $HOME/repos && \
git clone https://github.com/mdolab/pygeo && \
cd pygeo && \
pip install .
RUN cd $HOME/repos && \
git clone https://github.com/mdolab/multipoint && \
cd multipoint && \
pip install .
RUN cd $HOME/repos && \
git clone https://github.com/mdolab/pyhyp && \
cd pyhyp && \
cp -r config/defaults/config.LINUX_GFORTRAN_OPENMPI.mk config/config.mk && \
make && \
pip install .
RUN cd $HOME/repos && \
git clone https://github.com/mdolab/cgnsutilities && \
cd cgnsutilities && \
cp config.mk.info config.mk && \
make && \
pip install .
RUN cd $HOME/repos && \
git clone https://github.com/mdolab/idwarp && \
cd idwarp && \
cp -r config/defaults/config.LINUX_GFORTRAN_OPENMPI.mk config/config.mk && \
make && \
pip install .
RUN cd $HOME/repos && \
git clone https://github.com/mdolab/pyoptsparse && \
cd pyoptsparse && \
pip install .
RUN cd $HOME/repos && \
git clone https://github.com/mdolab/adflow && \
cd adflow && \
cp -r config/defaults/config.LINUX_GFORTRAN.mk config/config.mk && \
make && \
pip install .
RUN cd $HOME/repos && \
git clone https://github.com/mdolab/pyofm && \
cd pyofm && \
. $HOME/OpenFOAM/OpenFOAM-v1812/etc/bashrc && \
make && \
pip install .
RUN cd $HOME/repos && \
git clone https://github.com/mdolab/dafoam && \
cd dafoam && \
. $HOME/OpenFOAM/OpenFOAM-v1812/etc/bashrc && \
./Allmake && \
pip install .
RUN rm -rf $HOME/repos