mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-22 08:04:04 +01:00
25 lines
641 B
Bash
Executable File
25 lines
641 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
build_www_dir() {
|
|
docker build -t kasmweb/www -f builder/dockerfile.www.build .
|
|
docker run --rm -v $PWD/builder/www:/build kasmweb/www:latest
|
|
}
|
|
|
|
shared_with_docker_dir=${GITLAB_SHARED_DIND_DIR:-/tmp}
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
build_www_dir
|
|
|
|
docker pull ubuntu:18.04
|
|
docker build -t kasmvncbuilder:18.04 -f builder/dockerfile.ubuntu1804.build .
|
|
mkdir -p builder/build
|
|
docker run -v $shared_with_docker_dir:/build --rm kasmvncbuilder:18.04
|
|
|
|
L_GID=$(id -g)
|
|
L_UID=$(id -u)
|
|
chown $L_UID:$L_GID $shared_with_docker_dir/kasmvnc.ubuntu_18.04.tar.gz
|
|
mv $shared_with_docker_dir/kasmvnc.ubuntu_18.04.tar.gz $PWD/builder/build/
|