2021-01-06 12:36:52 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2021-01-07 09:57:53 +01:00
|
|
|
cd "$(dirname "$0")/.."
|
2021-01-19 10:44:32 +01:00
|
|
|
. builder/os_ver_cli.sh
|
2021-01-07 09:57:53 +01:00
|
|
|
|
2021-01-19 10:44:32 +01:00
|
|
|
docker build -t debbuilder_${os}:${os_ver} -f \
|
|
|
|
builder/dockerfile.${os}${os_ver_dockerfile}.deb.build .
|
2021-01-07 09:57:53 +01:00
|
|
|
|
|
|
|
deb_output_dir=$(cd .. && echo $PWD)
|
2021-01-10 17:24:09 +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-01-19 10:44:32 +01:00
|
|
|
docker run --rm -v "$deb_output_dir":/src --user $L_UID:$L_GID debbuilder_${os}:${os_ver} /bin/bash -c '/src/*/builder/build-deb-inside-docker'
|