2021-01-06 12:36:52 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2021-01-14 07:04:43 +01:00
|
|
|
build_www_dir() {
|
2021-01-14 09:25:41 +01:00
|
|
|
docker build -t kasmweb/www -f builder/dockerfile.www.build .
|
2021-01-18 20:46:24 +01:00
|
|
|
docker run --rm -v $PWD/builder/www:/build kasmweb/www:latest
|
2021-01-14 07:04:43 +01:00
|
|
|
}
|
|
|
|
|
2021-01-06 12:36:52 +01:00
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
|
2021-01-14 07:04:43 +01:00
|
|
|
build_www_dir
|
|
|
|
|
2021-01-14 09:25:41 +01:00
|
|
|
docker pull ubuntu:18.04
|
|
|
|
docker build -t kasmvncbuilder:18.04 -f builder/dockerfile.ubuntu1804.build .
|
2021-01-06 12:36:52 +01:00
|
|
|
mkdir -p builder/build
|
2021-01-14 09:25:41 +01:00
|
|
|
docker run -v /tmp:/build --rm kasmvncbuilder:18.04
|
2021-01-10 17:24:09 +01:00
|
|
|
|
|
|
|
L_GID=$(id -g)
|
|
|
|
L_UID=$(id -u)
|
2021-01-14 09:25:41 +01:00
|
|
|
chown $L_UID:$L_GID /tmp/kasmvnc.ubuntu_18.04.tar.gz
|
2021-01-10 17:24:09 +01:00
|
|
|
mv /tmp/kasmvnc.ubuntu_18.04.tar.gz $PWD/builder/build/
|