mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-25 17:44:01 +01:00
91eb953f62
New build option with latest stable libjpeg-turbo library
22 lines
659 B
Bash
Executable File
22 lines
659 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
cd "$(dirname "$0")/.."
|
|
. builder/os_ver_cli.sh
|
|
|
|
L_UID=$(id -u) #Ubuntu already has UID env var, but this should work on all Linix systems
|
|
L_GID=$(id -g)
|
|
|
|
builder_image=debbuilder_${os}:${os_codename}${build_tag_for_images}
|
|
docker build --build-arg KASMVNC_PACKAGE_DIR="builder/build/${os_codename}" \
|
|
--build-arg L_UID="$L_UID" \
|
|
-t "$builder_image" -f \
|
|
builder/dockerfile.${os}_${os_codename}${build_tag}.deb.build .
|
|
|
|
deb_output_dir=$(cd .. && echo $PWD)
|
|
docker run --rm -v "$deb_output_dir":/src -e BUILD_TAG="$build_tag" \
|
|
--user "$L_UID:$L_GID" \
|
|
"$builder_image" /bin/bash -c \
|
|
'/src/*/builder/build-deb-inside-docker'
|