-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathDockerfile
46 lines (40 loc) · 1.6 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
from physino/gears
# https://wiki.almalinux.org/repos/Extras.html
run dnf install -y epel-release && dnf config-manager --set-enabled crb \
&& curl -LO https://github.com/kasmtech/KasmVNC/releases/download/v1.3.1/kasmvncserver_oracle_9_1.3.1_x86_64.rpm \
&& dnf localinstall -y kasmvncserver*.rpm && rm -f kasmvncserver*.rpm \
&& dnf clean all && rm -fr /var/cache/*
run dnf install -y xauth java-1.8.0-openjdk openbox xterm \
&& dnf clean all && rm -fr /var/cache/*
run usermod -a -G kasmvnc-cert root && mkdir -p /root/.vnc \
&& touch /root/.vnc/.de-was-selected \
&& echo -e 'geant4\ngeant4\n' | vncpasswd -u root -w -r \
&& echo 'xsetroot -solid "#538cc6"' > /root/.vnc/xstartup \
&& echo 'openbox' >> /root/.vnc/xstartup \
&& chmod 755 /root/.vnc/xstartup \
&& mkdir -p /root/.config/openbox \
&& echo -e '<?xml version="1.0" encoding="UTF-8"?>\n\
<openbox_menu>\n\
<menu id="root-menu" label="Openbox 3">\n\
<item label="Terminal">\n\
<action name="Execute">\n\
<command>xterm -fg white -bg black</command>\n\
</action>\n\
</item>\n\
<item label="Reconfigure">\n\
<action name="Reconfigure" />\n\
</item>\n\
<item label="Exit">\n\
<action name="Exit">\n\
<prompt>yes</prompt>\n\
</action>\n\
</item>\n\
</menu>\n\
</openbox_menu>' > /root/.config/openbox/menu.xml \
&& echo -e 'network:\n ssl:\n require_ssl: false\n' > /root/.vnc/kasmvnc.yaml
add https://github.com/jintonic/gears/raw/master/tutorials/detector/visualization/v2x /usr/bin
# 8443 + display number
expose 8444
expose 8000
# container exits immediately without "tail"
cmd vncserver && tail -f ~/.vnc/*.log