Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
jintonic committed Apr 4, 2024
1 parent f7f7015 commit ccd33d4
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions INSTALL/Geant4/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
from physino/geant4:sshd
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 openbox xterm && 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 'st' >> /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 -fs=12</command>\n\
<command>xterm -fg white -bg black</command>\n\
</action>\n\
</item>\n\
<item label="Reconfigure">\n\
Expand All @@ -35,7 +36,11 @@ run usermod -a -G kasmvnc-cert root && mkdir -p /root/.vnc \
</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

0 comments on commit ccd33d4

Please sign in to comment.