-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93da9d4
commit bf58f04
Showing
5 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
FROM phusion/baseimage:0.9.19 | ||
MAINTAINER needo <[email protected]> | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
# Set correct environment variables | ||
ENV HOME /root | ||
|
||
# Use baseimage-docker's init system | ||
CMD ["/sbin/my_init"] | ||
|
||
# Fix a Debianism of the nobody's uid being 65534 | ||
RUN usermod -u 99 nobody | ||
RUN usermod -g 100 nobody | ||
|
||
RUN add-apt-repository ppa:deluge-team/ppa | ||
ADD sources.list /etc/apt/ | ||
RUN apt-get update -qq | ||
RUN apt-get install -qy deluged deluge-web unrar unzip p7zip | ||
|
||
#Path to a directory that only contains the deluge.conf | ||
VOLUME /config | ||
VOLUME /downloads | ||
|
||
EXPOSE 8112 | ||
EXPOSE 58846 | ||
|
||
# Add deluged to runit | ||
RUN mkdir /etc/service/deluged | ||
ADD deluged.sh /etc/service/deluged/run | ||
RUN chmod +x /etc/service/deluged/run | ||
|
||
# Add deluge-web to runit | ||
RUN mkdir /etc/service/deluge-web | ||
ADD deluge-web.sh /etc/service/deluge-web/run | ||
RUN chmod +x /etc/service/deluge-web/run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
This is a Dockerfile setup for deluge - http://deluge-torrent.org/ | ||
|
||
To run: | ||
|
||
``` | ||
docker run -d --name="deluge" -v /path/to/dir/deluge/conf:/config -v /path/to/downloads:/downloads -v /etc/localtime:/etc/localtime:ro -p 8112:8112 -p 58846:58846 needo/deluge | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
if [ -z "$DELUGED_USER" ] | ||
then | ||
DELUGED_USER=nobody | ||
fi | ||
|
||
exec /sbin/setuser $DELUGED_USER deluge-web -c /config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
if [ -z "$DELUGED_USER" ] | ||
then | ||
DELUGED_USER=nobody | ||
fi | ||
|
||
exec /sbin/setuser $DELUGED_USER deluged -d -c /config -L info -l /config/deluged.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
############################################################# | ||
################### OFFICIAL UBUNTU REPOS ################### | ||
############################################################# | ||
|
||
###### Ubuntu Main Repos | ||
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty main restricted universe multiverse | ||
deb-src mirror://mirrors.ubuntu.com/mirrors.txt trusty main restricted universe multiverse | ||
|
||
###### Ubuntu Update Repos | ||
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-security main restricted universe multiverse | ||
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-updates main restricted universe multiverse | ||
deb-src mirror://mirrors.ubuntu.com/mirrors.txt trusty-security main restricted universe multiverse | ||
deb-src mirror://mirrors.ubuntu.com/mirrors.txt trusty-updates main restricted universe multiverse | ||
|
||
|