mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-29 03:23:09 +01:00
Rpm: add test-rpm-barebones with Openbox
Twm wasn't available.
This commit is contained in:
parent
49996f91e6
commit
69efc52614
@ -1,17 +1,21 @@
|
|||||||
FROM centos:centos7
|
FROM centos:centos7
|
||||||
|
|
||||||
RUN yum install -y epel-release && yum groupinstall xfce -y
|
RUN yum install -y epel-release && yum install -y openbox xterm
|
||||||
RUN yum install -y xterm perl
|
RUN yum erase -y pm-utils xscreensaver*
|
||||||
|
RUN yum install -y vim less
|
||||||
|
|
||||||
ARG KASMVNC_PACKAGE_DIR
|
ARG KASMVNC_PACKAGE_DIR
|
||||||
COPY $KASMVNC_PACKAGE_DIR/*.rpm /tmp
|
COPY $KASMVNC_PACKAGE_DIR/*.rpm /tmp
|
||||||
RUN yum localinstall -y /tmp/*.rpm
|
RUN yum localinstall -y /tmp/*.rpm
|
||||||
|
|
||||||
RUN useradd -m docker
|
RUN useradd -m foo
|
||||||
|
|
||||||
USER docker
|
USER foo
|
||||||
|
|
||||||
RUN mkdir ~/.vnc && echo '/usr/bin/xfce4-session &' >> ~/.vnc/xstartup && \
|
RUN mkdir -p ~/.config/openbox && echo xterm > ~/.config/openbox/autostart && chmod +x ~/.config/openbox/autostart
|
||||||
|
RUN mkdir ~/.vnc && echo '/usr/bin/openbox-session &' >> ~/.vnc/xstartup && \
|
||||||
chmod +x ~/.vnc/xstartup
|
chmod +x ~/.vnc/xstartup
|
||||||
|
RUN openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout $HOME/.vnc/self.pem -out $HOME/.vnc/self.pem -subj "/C=US/ST=VA/L=None/O=None/OU=DoFu/CN=kasm/emailAddress=none@none.none"
|
||||||
|
RUN echo bar | kasmvncpasswd -f > $HOME/.kasmpasswd && chmod 0600 $HOME/.kasmpasswd
|
||||||
|
|
||||||
ENTRYPOINT bash -c "vncserver :1 -interface 0.0.0.0 && vncserver -kill :1 && vncserver :1 -depth 24 -geometry 1280x1050 -websocketPort 8443 -cert /etc/ssl/certs/ssl-cert-snakeoil.pem -key /etc/ssl/private/ssl-cert-snakeoil.key -sslOnly -FrameRate=24 -interface 0.0.0.0 -httpd /usr/share/kasmvnc/www && tail -f $HOME/.vnc/*.log "
|
ENTRYPOINT bash -c "vncserver :1 -interface 0.0.0.0 && vncserver -kill :1 && vncserver :1 -depth 24 -geometry 1280x1050 -websocketPort 8443 -cert $HOME/.vnc/self.pem -sslOnly -FrameRate=24 -interface 0.0.0.0 -httpd /usr/share/kasmvnc/www && tail -f $HOME/.vnc/*.log "
|
||||||
|
@ -11,4 +11,5 @@ docker build --build-arg KASMVNC_PACKAGE_DIR="build" \
|
|||||||
-f dockerfile.${os}_${os_codename}.barebones.rpm.test .
|
-f dockerfile.${os}_${os_codename}.barebones.rpm.test .
|
||||||
echo
|
echo
|
||||||
echo "You will be asked to set password. User name is docker."
|
echo "You will be asked to set password. User name is docker."
|
||||||
docker run -it -p 443:8443 --rm kasmvnctester_barebones_${os}:$os_codename
|
docker run -it -p 443:8443 --rm -e "VNC_USER=foo" -e "VNC_PW=bar" \
|
||||||
|
kasmvnctester_barebones_${os}:$os_codename
|
||||||
|
Loading…
Reference in New Issue
Block a user