summaryrefslogtreecommitdiff
path: root/scripts/makedeb-docker
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-04-25 20:31:15 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-04-25 20:31:15 +0200
commitd7f01be37f8652de6876900261ba7530a1fb9d53 (patch)
treed78a47b612f52d2d6c2d91153ee8031675c79933 /scripts/makedeb-docker
parent1a0a6576cd1175ca3fd08359f576c70079dd96a4 (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"