KasmVNC/builder/build-tarball

26 lines
594 B
Plaintext
Raw Normal View History

#!/bin/bash
set -e
build_www_dir() {
2021-01-14 09:25:41 +01:00
docker build -t kasmweb/www -f builder/dockerfile.www.build .
docker run -it --rm -v $PWD/builder/www:/build kasmweb/www:latest
}
cd "$(dirname "$0")/.."
. builder/os_ver_cli.sh
build_www_dir
docker pull "$os_image"
docker build -t kasmvncbuilder:$os_ver \
2021-01-22 09:54:22 +01:00
-f builder/dockerfile.${os}${os_ver_dockerfile}.build .
mkdir -p builder/build
docker run -v /tmp:/build --rm kasmvncbuilder:$os_ver
2021-01-10 17:24:09 +01:00
L_GID=$(id -g)
L_UID=$(id -u)
tarball_name="kasmvnc.${os}_${os_ver}.tar.gz"
chown $L_UID:$L_GID /tmp/$tarball_name
mv /tmp/$tarball_name $PWD/builder/build/