Skip to content

Commit

Permalink
Clone Deluge from needo & update
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptInsano committed Sep 9, 2016
1 parent 93da9d4 commit bf58f04
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 0 deletions.
35 changes: 35 additions & 0 deletions Deluge/Dockerfile
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
7 changes: 7 additions & 0 deletions Deluge/README.md
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
```
8 changes: 8 additions & 0 deletions Deluge/deluge-web.sh
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
8 changes: 8 additions & 0 deletions Deluge/deluged.sh
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
15 changes: 15 additions & 0 deletions Deluge/sources.list
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


0 comments on commit bf58f04

Please sign in to comment.