summaryrefslogtreecommitdiff
path: root/scripts/makedeb-docker
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-04-25 20:35:28 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-04-25 20:35:28 +0200
commit51e38c5fa97aec201139f358732b8c4a54e81446 (patch)
tree39e3e452e761b335ca78ec4f516d8999af9f3dcb /scripts/makedeb-docker
parente57b9ea3df711dc6283a0a197bedf48d9167122f (diff)
Add Dockerfile and docker-based .deb build scripts
Diffstat (limited to 'scripts/makedeb-docker')
-rwxr-xr-xscripts/makedeb-docker11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/makedeb-docker b/scripts/makedeb-docker
new file mode 100755
index 0000000..6c06971
--- /dev/null
+++ b/scripts/makedeb-docker
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+mkdir -p out
+
+docker run --rm -v "${PWD}:/orig:ro" -v "${PWD}/scripts:/scripts:ro" \
+ -v "${PWD}/out:/out" -e USER=$(id -u) -e GROUP=$(id -g) \
+ -e "DEBEMAIL=${DEBEMAIL}" -e "DEBFULLNAME=${DEBFULLNAME}" \
+ -e "LOGNAME=${LOGNAME}" -e "VERSION=$(git describe --dirty)-1" \
+ debian:buster /scripts/makedeb-docker-helper
+
+echo "Debian package has been written to $(pwd)/out"