-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
43 lines (33 loc) · 1.05 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
FROM ubuntu:18.04 as xyce_deps
RUN apt-get update && apt-get install -yq gcc g++ gfortran make cmake bison flex libfl-dev libfftw3-dev libsuitesparse-dev libblas-dev liblapack-dev libtool automake autoconf && apt-get clean
FROM xyce_deps as trillinos_git
RUN apt-get install -yq git && apt-get clean
RUN \
mkdir -p /opt/Xyce && \
cd /opt/Xyce && \
git clone https://github.com/trilinos/Trilinos.git && \
cd Trilinos && \
git checkout trilinos-release-12-12-branch
FROM trillinos_git as trillinos_build
COPY reconfig.sh /opt/Xyce/
RUN \
cd /opt/Xyce && \
mkdir build && \
cd build && \
bash ../reconfig.sh && \
make && \
make install && \
cd .. && rm -rf Trilinos build
FROM trillinos_build as xyce
COPY Xyce-7.1 /opt/Xyce/Xyce-7.1
RUN \
cd /opt/Xyce/Xyce-7.1 && \
./bootstrap && \
mkdir build && \
cd build && \
../configure CXXFLAGS="-O3" ARCHDIR="/opt/Xyce/XyceLibs/Serial" CPPFLAGS="-I/usr/include/suitesparse" && \
make && \
make install && \
cd .. && \
rm -rf build && \
cd ..