Add scripts to build and start it
This commit is contained in:
parent
c024de2e6c
commit
c40c65ab65
|
@ -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
|
||||
|
|
@ -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
|
||||
|
Loading…
Reference in New Issue