Initial commit

This commit is contained in:
dave 2016-01-18 11:25:30 -08:00
commit b732a400c7
2 changed files with 26 additions and 0 deletions

18
Dockerfile Normal file
View File

@ -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"]

8
start Normal file
View File

@ -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/