From cc28fafdac706777e331a3d69ea6ef2ff851d708 Mon Sep 17 00:00:00 2001 From: lance allen Date: Fri, 15 Dec 2017 23:23:54 -0800 Subject: [PATCH] adding dockerfile and messing with containers --- Dockerfile | 26 ++++++++++++++++++++++++++ settings.json | 22 ++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 Dockerfile create mode 100644 settings.json diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3da0359 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +# Use Debian 9 because it's da best +FROM debian:9 + +# Establish environment variables/paths +ENV APP_DIR=/srv + +# Work in app directory +WORKDIR $APP_DIR + +# Install system packages required for building app +RUN apt-get update && apt-get install -y python-pip transmission-daemon + +# Add application user so we're not running as root +RUN useradd -m swashbuckler + +# Copy python library requirements +COPY requirements.txt . + +# Install application dependencies +RUN pip install -r requirements.txt + +# Drop transmission config +COPY settings.json /etc/transmission-daemon/settings.json + + +CMD /usr/bin/transmission-daemon --config-dir /etc/transmission-daemon/settings.json diff --git a/settings.json b/settings.json new file mode 100644 index 0000000..b16a8db --- /dev/null +++ b/settings.json @@ -0,0 +1,22 @@ +{ + "blocklist-enabled": 0, + "download-dir": "\/data\/downloads", + "download-limit": 100, + "download-limit-enabled": 0, + "encryption": 1, + "max-peers-global": 200, + "peer-port": 51413, + "pex-enabled": 1, + "port-forwarding-enabled": 0, + "rpc-authentication-required": false, + "rpc-bind-address": "0.0.0.0", + "rpc-enabled": true, + "rpc-password": "", + "rpc-port": 9091, + "rpc-url": "/transmission/", + "rpc-username": "transmission", + "rpc-whitelist": "0.0.0.0/0", + "rpc-whitelist-enabled": true, + "upload-limit": 100, + "upload-limit-enabled": 0 +}