2015-06-05 19:24:11 +02:00
|
|
|
# DESCRIPTION: Create transmission container with its dependencies
|
2016-09-20 00:25:05 +02:00
|
|
|
# AUTHOR: Jessie Frazelle <jess@linux.com>
|
2014-10-19 06:40:41 +02:00
|
|
|
# COMMENTS:
|
2015-06-05 19:24:11 +02:00
|
|
|
# This file describes how to build a transmission container with all
|
|
|
|
# dependencies installed.
|
|
|
|
# Tested on Debian Jessie
|
2014-10-19 06:40:41 +02:00
|
|
|
# USAGE:
|
2015-06-05 19:24:11 +02:00
|
|
|
# # Download transmission Dockerfile
|
2016-10-25 22:37:56 +02:00
|
|
|
# wget https://raw.githubusercontent.com/jessfraz/dockerfiles/master/transmission/Dockerfile
|
2014-10-19 06:40:41 +02:00
|
|
|
#
|
2015-06-05 19:24:11 +02:00
|
|
|
# # Build transmission image
|
|
|
|
# docker build -t jess/transmission .
|
2014-10-19 06:40:41 +02:00
|
|
|
#
|
2015-06-05 19:24:11 +02:00
|
|
|
# docker run -d --name transmission \
|
2015-06-05 20:55:25 +02:00
|
|
|
# -v /home/jessie/Torrents:/transmission/download \
|
|
|
|
# -p 9091:9091 -p 51413:51413 -p 51413:51413/udp \
|
|
|
|
# jess/transmission
|
2014-10-19 06:40:41 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
# Base docker image
|
2015-07-27 07:40:32 +02:00
|
|
|
FROM alpine:latest
|
2016-09-20 00:25:05 +02:00
|
|
|
MAINTAINER Jessie Frazelle <jess@linux.com>
|
2014-10-19 06:40:41 +02:00
|
|
|
|
2016-06-06 05:40:20 +02:00
|
|
|
RUN apk --no-cache add \
|
2015-06-05 19:24:11 +02:00
|
|
|
transmission-daemon \
|
2015-06-07 02:48:44 +02:00
|
|
|
&& mkdir -p /transmission/{download,watch,incomplete,config} \
|
2015-06-05 19:24:11 +02:00
|
|
|
&& chmod 1777 /transmission
|
2014-10-19 06:40:41 +02:00
|
|
|
|
2015-06-01 03:53:57 +02:00
|
|
|
ENV TRANSMISSION_HOME /transmission/config
|
|
|
|
|
|
|
|
EXPOSE 9091
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/bin/transmission-daemon"]
|
|
|
|
CMD [ "--allowed", "127.*,10.*,192.168.*,172.16.*,172.17.*,172.18.*,172.19.*,172.20.*,172.21.*,172.22.*,172.23.*,172.24.*,172.25.*,172.26.*,172.27.*,172.28.*,172.29.*,172.30.*,172.31.*,169.254.*", "--watch-dir", "/transmission/watch", "--encryption-preferred", "--foreground", "--config-dir", "/transmission/config", "--incomplete-dir", "/transmission/incomplete", "--dht", "--no-auth", "--download-dir", "/transmission/download" ]
|