-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-novnc-salome-official
126 lines (107 loc) · 3.59 KB
/
Dockerfile-novnc-salome-official
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
ARG OS=ubuntu
ARG DIST=xenial
FROM ${OS}:${DIST}
MAINTAINER Christophe Trophime <[email protected]>
ARG OS=ubuntu
ARG DIST=xenial
ARG HTTP_USER=barbu
ARG HTTP_PASSWD=171167
ARG VERSION=8.4.0
ARG SVERSION=V8_4_0
ARG GPGKEY=535D3508
# Setup demo environment variables
ENV HOME=/root \
DEBIAN_FRONTEND=noninteractive \
LANG=en_US.UTF-8 \
LANGUAGE=en_US.UTF-8 \
LC_ALL=C.UTF-8 \
DISPLAY=:0.0 \
DISPLAY_WIDTH=1600 \
DISPLAY_HEIGHT=968
ARG DEBIAN_FRONTEND=noninteractive
RUN if [ "$OS" = "debian" ]; then \
if [ "$DIST" != "buster" ]; then \
echo "deb http://ftp.debian.org/debian $DIST-updates main" >> /etc/apt/sources.list; \
echo "deb http://ftp.debian.org/debian $DIST-backports main" >> /etc/apt/sources.list; \
fi ; \
perl -p -i'.bak' -e "s| main| main contrib non-free|g" /etc/apt/sources.list; \
fi
# Install git, supervisor, VNC, & X11 packages
RUN apt update && \
apt upgrade -y && \
apt install -y \
procps net-tools \
wget curl \
emacs-nox vim nano \
lsb-release \
bash bash-completion \
fluxbox \
git \
socat \
supervisor \
x11vnc \
xterm \
xvfb \
mesa-utils mesa-utils-extra && \
apt clean -y
# Clone noVNC from github
RUN git clone https://github.com/kanaka/noVNC.git /root/noVNC \
&& rm -rf /root/noVNC/.git \
&& git clone https://github.com/kanaka/websockify /root/noVNC/utils/websockify \
&& rm -rf /root/noVNC/utils/websockify/.git \
&& apt purge -y git
# General requirements
RUN apt-get -qq update && \
apt-get -y upgrade && \
apt-get install -y \
python-minimal libxss1 \
bash-completion \
emacs vim nano \
lsb-release wget curl \
lshw \
firefox \
mesa-utils binutils kmod iputils-ping net-tools \
libxmu6 libglu1-mesa libxft2 && \
apt-get -y clean
# General requirements
RUN apt-get -qq update && \
apt-get -y upgrade && \
apt-get install -y \
python-minimal libxss1 \
bash-completion \
emacs vim nano \
lsb-release wget curl \
lshw \
firefox \
sudo gosu \
mesa-utils binutils module-init-tools iputils-ping net-tools \
libxmu6 libglu1-mesa libxft2 \
libpcre16-3 libfreeimageplus3 libfreeimage3 \
python-numpy python-matplotlib python-sip python-pyqt5 \
libboost-thread1.58.0 libboost-regex1.58.0 \
ttf-mscorefonts-installer \
&& apt-get clean -y
# get Cea bin
RUN apt-get -y install libglu1-mesa mesa-utils mesa-utils-extra x11-apps libxv1 && \
apt-get clean -y && \
wget --http-user ${HTTP_USER} --http-password ${HTTP_PASSWD} \
-O /tmp/Salome.tgz \
"http://www.salome-platform.org/downloads/current-version/DownloadDistr?platform=OS1.UB16.04&version=$VERSION" && \
mkdir -p /opt/ && \
mkdir -p /opt/DISTENE/DLim/ && \
cd /opt && \
tar zxf /tmp/Salome.tgz && \
rm /tmp/Salome.tgz
# Mount /opt/DISTENE as /opt/DISTENE
ENV DISTENE_LICENSE_FILE /opt/DISTENE/DLim/dlim8.key
ENV PATH /opt/SALOME-$VERSION-UB16.04-SRC/:$PATH
# Install Hifimagnet PLUGIN with sat?
# Install vglrun?
RUN wget https://sourceforge.net/projects/virtualgl/files/2.5.2/virtualgl_2.5.2_amd64.deb/download -O /tmp/virtualgl_2.5.2_amd64.deb && \
dpkg -i /tmp/virtualgl_2.5.2_amd64.deb && \
rm /tmp/virtualgl_2.5.2_amd64.deb
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# Modify the launch script 'ps -p'
RUN sed -i -- "s/ps -p/ps -o pid | grep/g" /root/noVNC/utils/launch.sh
EXPOSE 8080
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]