mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-22 08:04:04 +01:00
Don't use "sodu docker", just "docker"
This commit is contained in:
parent
2a64e062c4
commit
fc91e4d622
@ -3,32 +3,32 @@ Docker CE
|
|||||||
|
|
||||||
# Build the www webpack
|
# Build the www webpack
|
||||||
```
|
```
|
||||||
sudo docker build -t kasmweb/www -f builder/dockerfile.www.build .
|
docker build -t kasmweb/www -f builder/dockerfile.www.build .
|
||||||
sudo docker run -it --rm -v $PWD/builder/www:/build kasmweb/www:latest
|
docker run -it --rm -v $PWD/builder/www:/build kasmweb/www:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
# build the docker image
|
# build the docker image
|
||||||
```
|
```
|
||||||
cd /src_code_root
|
cd /src_code_root
|
||||||
sudo docker build -t kasmvncbuilder:18.04 -f builder/dockerfile.ubuntu1804.build .
|
docker build -t kasmvncbuilder:18.04 -f builder/dockerfile.ubuntu1804.build .
|
||||||
```
|
```
|
||||||
|
|
||||||
### Run the builder
|
### Run the builder
|
||||||
```sh
|
```sh
|
||||||
mkdir -p builder/build
|
mkdir -p builder/build
|
||||||
sudo docker run -v /tmp:/build --rm kasmvncbuilder:18.04
|
docker run -v /tmp:/build --rm kasmvncbuilder:18.04
|
||||||
cp /tmp/build/kasmvnc.ubuntu_18.04.tar.gz builder/build/
|
cp /tmp/build/kasmvnc.ubuntu_18.04.tar.gz builder/build/
|
||||||
```
|
```
|
||||||
|
|
||||||
### Build test desktop container
|
### Build test desktop container
|
||||||
```sh
|
```sh
|
||||||
cd builder
|
cd builder
|
||||||
sudo docker build -t kasmvnctester:18.04 -f dockerfile.ubuntu1804.test .
|
docker build -t kasmvnctester:18.04 -f dockerfile.ubuntu1804.test .
|
||||||
```
|
```
|
||||||
|
|
||||||
### run an instance of the new destkop
|
### run an instance of the new destkop
|
||||||
```sh
|
```sh
|
||||||
sudo docker run -it -p 443:8443 --rm -e "VNC_USER=username" -e "VNC_PW=password123" kasmvnctester:18.04
|
docker run -it -p 443:8443 --rm -e "VNC_USER=username" -e "VNC_PW=password123" kasmvnctester:18.04
|
||||||
```
|
```
|
||||||
|
|
||||||
open browser and point to https://<ip-address>/vnc.html
|
open browser and point to https://<ip-address>/vnc.html
|
||||||
|
@ -4,10 +4,10 @@ set -e
|
|||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
sudo docker build -t debbuilder_ubuntu:18.04 -f \
|
docker build -t debbuilder_ubuntu:18.04 -f \
|
||||||
builder/dockerfile.ubuntu1804.deb.build .
|
builder/dockerfile.ubuntu1804.deb.build .
|
||||||
|
|
||||||
deb_output_dir=$(cd .. && echo $PWD)
|
deb_output_dir=$(cd .. && echo $PWD)
|
||||||
L_UID=$(id -u) #Ubuntu already has UID env var, but this should work on all Linix systems
|
L_UID=$(id -u) #Ubuntu already has UID env var, but this should work on all Linix systems
|
||||||
L_GID=$(id -g)
|
L_GID=$(id -g)
|
||||||
sudo docker run --rm -v "$deb_output_dir":/src --user $L_UID:$L_GID debbuilder_ubuntu:18.04 /bin/bash -c '/src/*/builder/build-deb-inside-docker'
|
docker run --rm -v "$deb_output_dir":/src --user $L_UID:$L_GID debbuilder_ubuntu:18.04 /bin/bash -c '/src/*/builder/build-deb-inside-docker'
|
||||||
|
@ -3,20 +3,20 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
build_www_dir() {
|
build_www_dir() {
|
||||||
sudo docker build -t kasmweb/www -f builder/dockerfile.www.build .
|
docker build -t kasmweb/www -f builder/dockerfile.www.build .
|
||||||
sudo docker run -it --rm -v $PWD/builder/www:/build kasmweb/www:latest
|
docker run -it --rm -v $PWD/builder/www:/build kasmweb/www:latest
|
||||||
}
|
}
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
build_www_dir
|
build_www_dir
|
||||||
|
|
||||||
sudo docker pull ubuntu:18.04
|
docker pull ubuntu:18.04
|
||||||
sudo docker build -t kasmvncbuilder:18.04 -f builder/dockerfile.ubuntu1804.build .
|
docker build -t kasmvncbuilder:18.04 -f builder/dockerfile.ubuntu1804.build .
|
||||||
mkdir -p builder/build
|
mkdir -p builder/build
|
||||||
sudo docker run -v /tmp:/build --rm kasmvncbuilder:18.04
|
docker run -v /tmp:/build --rm kasmvncbuilder:18.04
|
||||||
|
|
||||||
L_GID=$(id -g)
|
L_GID=$(id -g)
|
||||||
L_UID=$(id -u)
|
L_UID=$(id -u)
|
||||||
sudo chown $L_UID:$L_GID /tmp/kasmvnc.ubuntu_18.04.tar.gz
|
chown $L_UID:$L_GID /tmp/kasmvnc.ubuntu_18.04.tar.gz
|
||||||
mv /tmp/kasmvnc.ubuntu_18.04.tar.gz $PWD/builder/build/
|
mv /tmp/kasmvnc.ubuntu_18.04.tar.gz $PWD/builder/build/
|
||||||
|
Loading…
Reference in New Issue
Block a user