commit ef08a6465a65e8a7780fed535ff6aeaf76168c3a Author: sparklyballs Date: Mon Aug 17 13:13:48 2015 +0100 first draft, tweaks to follow diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b06556e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,41 @@ +FROM linuxserver/baseimage +MAINTAINER Mark Burford + +ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 + +# Set the locale +RUN locale-gen en_US.UTF-8 + +# install our compiled version of par2 multicore +ADD deb/ /tmp/ +RUN apt-get update -q && \ +apt-get install libtbb2 -qy && \ +dpkg -i /tmp/par2-tbb_*.deb && \ +rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + +# install main packages +RUN add-apt-repository ppa:jcfp/ppa && \ +add-apt-repository ppa:kirillshkrogalev/ffmpeg-next && \ +apt-get update -q && \ +apt-get install \ +curl \ +ffmpeg \ +sabnzbdplus \ +sabnzbdplus-theme-mobile \ +unrar \ +wget -qy && \ +apt-get clean -y && \ +rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + +# set volumes +VOLUME /config /downloads /incomplete-downloads + +# expose ports +EXPOSE 8080 9090 + +# adding custom files +ADD services/ /etc/service/ +ADD init/ /etc/my_init.d/ +RUN chmod -v +x /etc/service/*/run +RUN chmod -v +x /etc/my_init.d/*.sh + diff --git a/README.md b/README.md new file mode 100644 index 0000000..bc5f521 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +![http://linuxserver.io](http://www.linuxserver.io/wp-content/uploads/2015/06/linuxserver_medium.png) + +## This is a Container in active development, and should not be used by the general public. +If you are curious about the current progress or want to comment\contribute to this work, feel free to join us at out irc channel: +[IRC](http://www.linuxserver.io/index.php/irc/) on freenode at `#linuxserver.io`. + +or visit our website at [http://linuxserver.io](http://linuxserver.io) + diff --git a/deb/par2-tbb_0.4+20150503-1_amd64.deb b/deb/par2-tbb_0.4+20150503-1_amd64.deb new file mode 100644 index 0000000..850aef0 Binary files /dev/null and b/deb/par2-tbb_0.4+20150503-1_amd64.deb differ diff --git a/init/10_new_user.sh b/init/10_new_user.sh new file mode 100644 index 0000000..179582c --- /dev/null +++ b/init/10_new_user.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +if [ ! "$(id -u abc)" -eq "$PUID" ]; then usermod -o -u "$PUID" abc ; fi +if [ ! "$(id -g abc)" -eq "$PGID" ]; then groupmod -o -g "$PGID" abc ; fi + +echo " +----------------------------------- +GID/UID +----------------------------------- +User uid: $(id -u abc) +User gid: $(id -g abc) +----------------------------------- +" diff --git a/init/20_set_config.sh b/init/20_set_config.sh new file mode 100644 index 0000000..ca336b9 --- /dev/null +++ b/init/20_set_config.sh @@ -0,0 +1,2 @@ +#!/bin/bash +chown abc:abc /downloads /config /incomplete-downloads diff --git a/services/sabnzbd/run b/services/sabnzbd/run new file mode 100644 index 0000000..e1678e2 --- /dev/null +++ b/services/sabnzbd/run @@ -0,0 +1,3 @@ +#!/bin/bash + +exec /sbin/setuser abc /usr/bin/sabnzbdplus --config-file /config --server 0.0.0.0:8080