2021-02-05 11:49:47 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
cd "$(dirname "$0")"
|
2023-01-25 06:30:56 +01:00
|
|
|
. ./process_test_options.sh
|
2022-08-19 19:54:11 +02:00
|
|
|
. ./common.sh
|
2021-02-22 09:25:02 +01:00
|
|
|
os="${1:-centos}"
|
|
|
|
os_codename="${2:-core}"
|
2021-02-05 11:49:47 +01:00
|
|
|
|
2021-02-11 09:50:14 +01:00
|
|
|
docker build --build-arg KASMVNC_PACKAGE_DIR="build/${os}_${os_codename}" \
|
2021-02-05 11:49:47 +01:00
|
|
|
-t kasmvnctester_barebones_${os}:$os_codename \
|
|
|
|
-f dockerfile.${os}_${os_codename}.barebones.rpm.test .
|
2022-08-19 19:54:11 +02:00
|
|
|
docker run -it -p "443:$VNC_PORT" --rm -e "VNC_USER=foo" -e "VNC_PW=foobar" \
|
|
|
|
-e "VNC_PORT=$VNC_PORT" \
|
2023-01-25 06:30:56 +01:00
|
|
|
$entrypoint_executable \
|
|
|
|
kasmvnctester_barebones_${os}:$os_codename \
|
|
|
|
$entrypoint_args
|