forked from stuckless/sagetv-dockers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
runServerTest.sh
executable file
·34 lines (29 loc) · 1 KB
/
runServerTest.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# NOTE this is script that shows how to run the sagetv server in a docker container.
# the sagetv-webapi volume mapping shows how to map a folder in the webroot to a dev area for testing
if [ "$1" = "" ] ; then
echo "Need to pass docker name (ie something like stuckless/sagetv-server-java7)"
exit 1
fi
docker stop sagetv-server
docker rm -f sagetv-server
if [ "$1" = "stop" ] || [ "$2" = "stop" ] ; then
exit 0;
fi
docker run -d --name sagetv-server \
-v /home/seans/unRAID/mnt/user/sagemedia:/var/media \
-v /home/seans/unRAID/mnt/user/mediaext:/var/mediaext \
-v /home/seans/unRAID/mnt/user/apps/sagetv:/opt/sagetv \
-v /home/seans/unRAID:/unraid \
-v /home/seans/git/sagetv-webapi/app:/opt/sagetv/server/userdata/webserver/wwwroot/sage \
--net host \
--env OPT_GENTUNER=Y \
--env OPT_COMMANDIR=Y \
--env OPT_COMSKIP=Y \
--env PUID=1000 \
--env PGID=1000 \
--env VIDEO_GUID=44 \
--env LICENCE_DATA=AAABBB \
--env JAVA_MEM_MB=512 \
--privileged \
-t -i "$1" $2