summaryrefslogtreecommitdiff
path: root/run/docker-dcpomatic
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-11-02 21:29:12 +0100
committerCarl Hetherington <cth@carlh.net>2026-01-28 21:09:45 +0100
commite2c9a80321f4845580980111e70450541b02a651 (patch)
tree24bae858ef9195cfa3520f6ca023205cc372dc83 /run/docker-dcpomatic
parent946547dced1dce43217dc29532a1012085eba3c9 (diff)
Add scripts to build and run in docker.
Diffstat (limited to 'run/docker-dcpomatic')
-rwxr-xr-xrun/docker-dcpomatic15
1 files changed, 15 insertions, 0 deletions
diff --git a/run/docker-dcpomatic b/run/docker-dcpomatic
new file mode 100755
index 000000000..1b6f90193
--- /dev/null
+++ b/run/docker-dcpomatic
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
+source $DIR/environment
+binary=$build/src/tools/dcpomatic2
+
+xhost + local:docker
+docker run --init --rm -it \
+ -v /home/carl:/home/carl \
+ -v /tmp/.X11-unix:/tmp/.X11-unix \
+ -v /run:/run \
+ -e DISPLAY=:0 \
+ -e DCPOMATIC_GRAPHICS=$DCPOMATIC_GRAPHICS \
+ --device /dev/snd \
+ dcpomatic-v2.19.x $binary $* 2> >(grep -v Gtk-CRITICAL | grep -v Gtk-WARNING)