summaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-11-02 21:29:12 +0100
committerCarl Hetherington <cth@carlh.net>2025-11-30 00:42:42 +0100
commit4dcc1dcfe7dad9edda71e6eff8b466b7c4cc670c (patch)
treec204f2fec48d0998288d98831b28047c1a517f65 /run
parentfbe84d722c8db0c812ce54da012d5a6d0a72006f (diff)
Add scripts to build and run in docker.
Diffstat (limited to 'run')
-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)