From e5b8d4df11bba3c33b1b7780b110e90759059e01 Mon Sep 17 00:00:00 2001 From: Dmitry Maksyoma Date: Tue, 26 Jan 2021 21:45:33 +1300 Subject: [PATCH] Deb: add barebones testing image for Debian 10 --- builder/dockerfile.debian10.barebones.deb.test | 12 ++++++++++++ builder/test-deb-barebones | 15 +++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 builder/dockerfile.debian10.barebones.deb.test create mode 100755 builder/test-deb-barebones diff --git a/builder/dockerfile.debian10.barebones.deb.test b/builder/dockerfile.debian10.barebones.deb.test new file mode 100644 index 0000000..f219d8b --- /dev/null +++ b/builder/dockerfile.debian10.barebones.deb.test @@ -0,0 +1,12 @@ +FROM debian:buster-slim + +ARG KASMVNC_PACKAGE_DIR +COPY $KASMVNC_PACKAGE_DIR/kasmvncserver_*.deb /tmp +RUN apt-get update && dpkg -i /tmp/*.deb; apt-get -yf install +RUN apt-get update && apt-get -y install x11-xserver-utils xterm twm + +RUN useradd -m docker && addgroup docker ssl-cert + +USER docker + +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 " diff --git a/builder/test-deb-barebones b/builder/test-deb-barebones new file mode 100755 index 0000000..6174b63 --- /dev/null +++ b/builder/test-deb-barebones @@ -0,0 +1,15 @@ +#!/bin/bash + +set -e + +cd "$(dirname "$0")" +os="debian" +os_ver="10" +os_ver_dockerfile="10" + +docker build --build-arg KASMVNC_PACKAGE_DIR="build/${os}_${os_ver}" \ + -t kasmvnctester_barebones_${os}:$os_ver \ + -f dockerfile.${os}${os_ver_dockerfile}.barebones.deb.test . +echo +echo "You will be asked to set password. User name is docker." +docker run -it -p 443:8443 --rm kasmvnctester_barebones_${os}:$os_ver