Add scripts to build and start it

This commit is contained in:
Neale Pickett 2022-08-20 16:43:09 -06:00
parent c024de2e6c
commit c40c65ab65
2 changed files with 27 additions and 0 deletions

13
build.sh Executable file
View File

@ -0,0 +1,13 @@
#! /bin/sh
set -e
tag=registry.gitlab.com/dartcatcher/media-sucker/media-sucker
docker build --tag $tag .
case "$1" in
-push|--push)
docker push $tag
;;
esac

14
start.sh Executable file
View File

@ -0,0 +1,14 @@
#! /bin/sh
docker run \
--name=sucker \
-d \
--restart=always \
-p 5880:8080 \
--device-cgroup-rule 'b 11:* rmw' \
-v /dev:/host/dev \
-v /srv/ext/incoming:/incoming \
--cpu-shares 256 \
registry.gitlab.com/dartcatcher/media-sucker/media-sucker \
-drive /host/dev/sr0 /host/dev/sr1