-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (27 loc) · 995 Bytes
/
Copy pathDockerfile
File metadata and controls
34 lines (27 loc) · 995 Bytes
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
FROM ubuntu:14.04
ENV LANG=C.UTF-8
RUN : \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
wget \
make \
software-properties-common \
gnuplot \
&& rm -rf /var/lib/apt/lists/*
RUN : \
&& useradd --user-group --create-home --shell /bin/bash foam \
&& echo "foam ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
RUN : \
&& sh -c "wget -O - http://dl.openfoam.org/gpg.key | apt-key add -" \
&& add-apt-repository http://dl.openfoam.org/ubuntu \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
openfoam30 \
&& rm -rf /var/lib/apt/lists/* \
&& echo "source /opt/openfoam30/etc/bashrc" >> ~foam/.bashrc
COPY --chown=foam ./applications /home/foam/applications
USER foam
RUN : \
&& . /opt/openfoam30/etc/bashrc \
&& wmake /home/foam/applications/solvers/incompressible/adjointLaplace \
&& wmake /home/foam/applications/solvers/incompressible/adjointSpalartAllmaras