Deb: add barebones testing image for Debian 10

This commit is contained in:
Dmitry Maksyoma 2021-01-26 21:45:33 +13:00
parent 7a6067e081
commit e5b8d4df11
2 changed files with 27 additions and 0 deletions

View File

@ -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 "

15
builder/test-deb-barebones Executable file
View File

@ -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