forked from Crompulence/CPL_APP_OPENFOAM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
24 lines (20 loc) · 871 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Start from a fully built version of OpenFOAM and just rebuild CPL library
# and the interface to this in the form of CPL_APP_OPENFOAM
# This is needed as OpenFOAM takes 8+ hours to build and dockerhub
# does not seem to allow caching
FROM cpllibrary/mpich-openfoam
MAINTAINER Edward Smith <[email protected]>
# Check if CPL library needs to be updated, this is required as cplopenfoam
# will contain an old version of CPL library and this can easily be updated
WORKDIR /cpl-library
RUN git pull && \
make PLATFORM=gcc clean && \
make PLATFORM=gcc
#We need to update the app to the latest code, patch OpenFOAM and build solvers
WORKDIR $APP_DIR
RUN git pull
RUN /bin/bash -c "source SOURCEME.sh && \
make clean && \
make pstream && \
cp lib/libPstream.so $FOAM_SRC_DIR/platforms/linux64GccDPInt32Opt/lib/mpi-system/ && \
make"