Add run-browser-image to build and run browser images

This commit is contained in:
Dmitry Maksyoma 2021-07-11 23:12:10 +12:00
parent 6213a487db
commit fa9ddab929

13
run-browser-image Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
set -e
browser="$1"
if [[ -z "$browser" ]]; then
echo "Usage $(basename "$0") <browser_name>"
echo " Example: $(basename "$0") edge"
exit 1
fi
docker build -t kasmweb/"$browser":dev -f dockerfile-kasm-"$browser" .
docker run --rm -it --shm-size=512m -p 6901:6901 -e VNC_PW=password kasmweb/"$browser":dev