-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
78 lines (56 loc) · 1.72 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
FROM queeno/ubuntu-desktop
RUN apt-get update && apt-get install -y apt-utils autocutsel
CMD echo "autocutsel -fork &" >> /root/.vnc/xstartup
# Xyce install prerequisite
RUN apt-get update && \
apt-get install -y \
build-essential \
gcc \
g++ \
gfortran \
make \
cmake \
bison \
flex \
libfftw3-dev \
libsuitesparse-dev \
libblas-dev \
liblapack-dev \
libtool
# Need to fix this, libparametis not being found
# ubuntu parallel libs
#RUN apt-get update && \
#apt-get install -y \
#libopenmpi-dev \
#libparmetis-dev
# install git for source cloning
RUN apt-get update && \
apt-get install -y \
git
# tRILINOS SOURCE INSTALL
#RUN mkdir $HOME/trilinos_src && \
#cd $HOME/trilinos_src && \
#git clone -b trilinos-release-12-6-branch --single-branch https://github.com/trilinos/Trilinos.git . && \
#cd ~
ADD trilinos-12.6.3-Source.tar.bz2 /root/
RUN mkdir /root/Trilinos12.6
ADD trilinos_cmake_serial_amd64.bash /root/Trilinos12.6/trilinos_cmake_serial_amd64.bash
RUN cd /root/Trilinos12.6/ && \
chmod +x trilinos_cmake_serial_amd64.bash && \
./trilinos_cmake_serial_amd64.bash &&\
make -j $(nproc) && \
make install
##-----------------------------------------------
## Begin Xyce Install
ADD Xyce-6.6.tar.gz /root/
ADD Xyce_Docs-6.6.tar.gz /root/
RUN mkdir /root/xyce_build && \
cd /root/xyce_build && \
/root/Xyce-6.6/configure \
CXXFLAGS="-O3 -std=c++11" \
ARCHDIR="/root/XyceLibs/Serial" \
CPPFLAGS="-I/usr/include/suitesparse" && \
make -j $(nproc) && \
sudo make install
CMD /usr/bin/vncserver -kill :1
CMD /usr/bin/vncserver :1 -geometry 1280x800 -depth 24 && tail -f /root/.vnc/*:1.log