From 7a2fa116e408efaa13c5a5c7542a13a7baa766ab Mon Sep 17 00:00:00 2001 From: dave Date: Sat, 26 Sep 2015 18:19:26 -0700 Subject: [PATCH] initial commit --- Dockerfile | 11 +++++++++++ start | 6 ++++++ 2 files changed, 17 insertions(+) create mode 100644 Dockerfile create mode 100755 start diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c9bc8a9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM ubuntu:trusty + +RUN apt-get update ;\ + apt-get install -y wget ;\ + wget -O /tmp/plex.deb https://downloads.plex.tv/plex-media-server/0.9.12.11.1406-8403350/plexmediaserver_0.9.12.11.1406-8403350_amd64.deb ;\ + dpkg -i /tmp/plex.deb ;\ + rm -rf /tmp/plex.deb /var/lib/apt/lists/* + +ADD start /start + +VOLUME /var/lib/plexmediaserver/ diff --git a/start b/start new file mode 100755 index 0000000..b5f3fe0 --- /dev/null +++ b/start @@ -0,0 +1,6 @@ +#!/bin/bash + +# Cleanly kill plex when container is stopped +trap 'kill $(jobs -p)' EXIT + +su -c "/usr/sbin/start_pms" plex