summaryrefslogtreecommitdiff
path: root/docker/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker/run.sh')
-rw-r--r--docker/run.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/docker/run.sh b/docker/run.sh
new file mode 100644
index 0000000..aa8aa1e
--- /dev/null
+++ b/docker/run.sh
@@ -0,0 +1,6 @@
+NAME="mkvtool"
+[ "$(docker images | grep ${NAME})" ] || docker build -t ${NAME} $(dirname "$0")
+FONT_DIR="/usr/share/fonts/truetype" # Change this to your font directory
+CACHE_DIR="${HOME}/.mkvtool/caches" # Change this to your cache directory
+OTHER_DIR="" # Change this to your other directory for example: -v aaa:bbb
+docker run --rm -it -v ${FONT_DIR}:/fonts -v ${CACHE_DIR}:/root/.mkvtool/caches ${OTHER_DIR} ${NAME}