-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile.vnc
38 lines (31 loc) · 1.14 KB
/
Dockerfile.vnc
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
FROM mep3
USER root
# TurboVNC
RUN curl -L -o /tmp/turbovnc.deb \
'https://downloads.sourceforge.net/project/turbovnc/3.0.1/turbovnc_3.0.1_amd64.deb?use_mirror=autoselect' && \
apt-get install -y /tmp/turbovnc.deb && \
rm -f /tmp/turbovnc.deb && \
echo 'PATH="$PATH:/opt/TurboVNC/bin"' >> /memristor/.bashrc
# VirtualGL
RUN curl -L -o /tmp/virtualgl.deb \
'https://downloads.sourceforge.net/project/virtualgl/3.0.2/virtualgl_3.0.2_amd64.deb?use_mirror=autoselect' && \
apt-get install -y /tmp/virtualgl.deb && \
rm -f /tmp/virtualgl.deb && \
echo 'PATH="$PATH:/opt/VirtualGL/bin"' >> /memristor/.bashrc && \
printf "1\n\n\n\nX" | /opt/VirtualGL/bin/vglserver_config && \
sudo usermod -a -G vglusers memristor
# NoVNC
RUN apt-get install -y novnc && \
ln -sf /usr/share/novnc/vnc.html /usr/share/novnc/index.html && \
mkdir -p /memristor/.host
# XFCE
RUN apt-get install -y --no-install-recommends \
xorg \
dbus-x11 \
xfce4 \
xfce4-terminal && \
echo '/usr/sbin/lightdm' > /etc/X11/default-display-manager
# User config
COPY ./config/vnc.sh /usr/bin/
USER memristor
WORKDIR /memristor/ros2_ws