2021-02-05 11:49:47 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
. builder/os_ver_cli.sh
|
|
|
|
|
|
|
|
docker build -t kasmvnc_rpmbuilder_${os}:${os_codename} -f \
|
|
|
|
builder/dockerfile.${os}_${os_codename}.rpm.build .
|
|
|
|
|
2021-02-11 09:50:14 +01:00
|
|
|
source_dir=$(echo $PWD)
|
2021-02-05 11:49:47 +01:00
|
|
|
L_UID=$(id -u) #Ubuntu already has UID env var, but this should work on all Linix systems
|
|
|
|
L_GID=$(id -g)
|
2021-02-11 09:50:14 +01:00
|
|
|
docker run --rm -v "$source_dir":/src --user $L_UID:$L_GID \
|
2021-02-05 11:49:47 +01:00
|
|
|
kasmvnc_rpmbuilder_${os}:${os_codename} /bin/bash -c \
|
2021-02-11 09:50:14 +01:00
|
|
|
'/src/builder/build-rpm-inside-docker'
|