From b732a400c7abca02e999d591ff742072b60655f4 Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 18 Jan 2016 11:25:30 -0800 Subject: [PATCH] Initial commit --- Dockerfile | 18 ++++++++++++++++++ start | 8 ++++++++ 2 files changed, 26 insertions(+) create mode 100644 Dockerfile create mode 100644 start diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2956acf --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM ubuntu:trusty + +ADD start /start + +RUN useradd sick ;\ + apt-get update ;\ + apt-get install -y git python-setuptools ;\ + easy_install pip ;\ + cd /opt/ ;\ + git clone https://github.com/midgetspy/Sick-Beard.git Sick-Beard ;\ + pip install -r Sick-Beard/requirements.txt ;\ + mkdir /opt/sick-data ;\ + chown sick:sick /opt/sick-data/ ;\ + chmod +x /start + +VOLUME ["/opt/sick-data/"] + +ENTRYPOINT ["/start"] diff --git a/start b/start new file mode 100644 index 0000000..004477f --- /dev/null +++ b/start @@ -0,0 +1,8 @@ +#!/bin/bash + +# Cleanly kill supervisor when container is stopped +trap 'kill $(jobs -p)' EXIT + +cd /opt/Sick-Beard +./SickBeard.py --datadir=/opt/sick-data/ +