-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile.codeaster
61 lines (51 loc) · 1.24 KB
/
Dockerfile.codeaster
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
ARG from=ubuntu:18.04
From $from
USER root
ENV USER=root
ENV DEBIAN_FRONTEND=noninteractive
# Install dependencies
RUN apt-get -qq update && apt-get -qq install \
build-essential \
bison \
cmake \
make \
flex \
g++ \
gcc \
gedit \
gfortran \
grace \
liblapack-dev \
libblas-dev \
libboost-numpy-dev \
libboost-python-dev \
locales \
python3 python3-dev \
python3-numpy \
tk \
wget \
zlib1g-dev && \
rm -rf /var/lib/apt/lists/*
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN \
useradd -m -s /bin/bash precice
USER precice
WORKDIR /home/precice
ENV \
CA_VERSION=14.4.0 \
CA_REVISION=1
RUN \
wget -nv http://www.web-code-aster.org/FICHIERS/aster-full-src-$CA_VERSION-$CA_REVISION.noarch.tar.gz
RUN \
tar -xzf aster-full-src-$CA_VERSION-$CA_REVISION.noarch.tar.gz \
&& rm aster-full-src-$CA_VERSION-$CA_REVISION.noarch.tar.gz
RUN \
cd aster-full-src-14.4.0 \
&& yes | python3 setup.py install --prefix=/home/precice/Code_Aster
RUN \
cd /home/precice/Code_Aster/14.4/lib/aster/Execution && \
wget https://raw.githubusercontent.com/precice/code_aster-adapter/master/cht/adapter.py && \
cd /