-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
31 lines (18 loc) · 854 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
24
25
26
27
28
29
30
31
#################################################
# OpenFOAM6 image designed for BOINC
# All commands are the same as the ones from the base image
#################################################
FROM richardlock/openfoam6-paraview54-intelmpi:latest
MAINTAINER Carlos Redondo <[email protected]>
ENV _SECOND_AUTHOR "Carlos Redondo <[email protected]"
# Because the previous user is Ubuntu and BOINC requires access to the /root/ folder
USER root
# All jobs can be safely assumed to be run inside
ENV FOAM_RUN="/data"
COPY Mov_Res.py /Mov_Res.py
WORKDIR /data
# Makes python synonym with python3 for simplicty
RUN cp /usr/bin/python3 /usr/bin/python && mkdir -p "/root/shared/results" && rm -rf /opt/OpenFOAM/OpenFOAM-6/tutorials/ \
/opt/OpenFOAM/OpenFOAM-6/doc/
# Requires the command
# source /opt/OpenFOAM/OpenFOAM-6/etc/bashrc