Added build docker images for debian and others

This commit is contained in:
matt
2020-12-24 19:54:58 +00:00
parent e23bd08167
commit 55f9755dbd
13 changed files with 336 additions and 29 deletions

View File

@@ -1,22 +1,31 @@
REQIUREMENTS
## REQIUREMENTS
Docker CE
# build the docker image
Each supported operating system has two dockerfiles, one for building and one for testing. This example is for building and testing Ubuntu 18.04 LTS
### Build the docker image
```sh
cd /src_code_root
sudo docker build -t kasmvncbuilder:18.04 -f builder/dockerfile.build .
sudo docker build -t kasmvncbuilder:18.04 -f builder/dockerfile.ubuntu1804.build .
```
# run the builder
### Run the builder
```sh
mkdir -p builder/build
sudo docker run -v /tmp:/build --rm kasmvncbuilder:18.04
cp /tmp/build/kasmvnc.ubuntu_18.04.tar.gz builder/build/
```
# tar will be on /tmp of host
cp /tmp/kasmvnc*.tar.gz builder/
# build test desktop container with new binary installed
### Build test desktop container
```sh
cd builder
sudo docker build -t kasmvnctester:18.04 -f dockerfile.test .
sudo docker build -t kasmvnctester:18.04 -f dockerfile.ubuntu1804.test .
```
# run an instance of the new destkop
sudo docker run -d -p 80:6901 -p 5901:5901 -e VNCOPTIONS="-detectScrolling -PreferBandwidth -DynamicQualityMin=0" kasmvnctester:latest
### run an instance of the new destkop
```sh
sudo docker run -it -p 443:8443 --rm -e "VNC_USER=username" -e "VNC_PW=password123" kasmvnctester:18.04
```
open browser and point to http://IPAddress/vnc_lite.html
default password is "vncpassword" or use a VNC client
open browser and point to https://<ip-address>/vnc.html
The username and password were set in the docker run command