JustAMan / Emby

Emby Server is a personal media server with apps on just about every device.
https://emby.media
GNU General Public License v2.0
5 stars 0 forks source link

docker by any chance? #2

Open luxus opened 5 years ago

luxus commented 5 years ago

hello JustAMan, i know u just create it for personal use. but maybe you or someone else made a linux docker for it? i would love to try it with my http://cloudbox.works installation

JustAMan commented 5 years ago

I do not know about that. I personally use Proxmox (and LXC containers there) to set up things, as it is much easier for me for personal use to have stateful containers (compared to stateless docker-style ones).

You can try to combine https://github.com/nvllsvm/emby-unlocked/tree/master/docker and my init script (pasted below) to get yourself a Docker image. If you get one feel free to make a PR :)

#! /bin/bash

### BEGIN INIT INFO
# Provides:          Emby Server
# Required-Start:    $local_fs $network
# Required-Stop:     $local_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Emby Server
# Description:       Runs Emby Server
### END INIT INFO

# Carry out specific functions when asked to by the system
pid=`ps -fA|grep dotnet|grep EmbyServer|awk '{print $2}'| tr -d '\n'`

case "$1" in
  start)
        if [ "$pid" == "" ]; then
                echo "Starting Emby..."
                nohup dotnet /usr/lib/emby-server/bin/EmbyServer.dll >/dev/null 2>&1 &
        else
                echo "Emby already running"
        fi
    ;;
  stop)
        if [ "$pid" != "" ]; then
                echo "Stopping Emby..."
                kill $pid
                sleep 2
        else
                echo "Emby not running"
        fi
    ;;
  status)
        if [ "$pid" != "" ]; then
                echo "Emby running as $pid"
                ps -f $pid
        else
                echo "Emby is not running"
        fi
  ;;
  *)
    echo "Usage: $0 {start|stop}"
    exit 1
    ;;
esac
luxus commented 5 years ago

oh I didn't saw the docker file on the other repository . I'm unsure what todo I would like the newer version of Emby (3.6) because its a lot faster on big libraries. but u will not update it regularly right?

JustAMan commented 5 years ago

I'm not planning yet to upgrade yet - I use third-party app (screenplay) on my LG TV, and it doesn't work on 3.6 so far. You're welcome to try and merge new commits, though. :)