first draft, tweaks to follow

This commit is contained in:
sparklyballs
2015-08-17 13:13:48 +01:00
commit ef08a6465a
6 changed files with 67 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
FROM linuxserver/baseimage
MAINTAINER Mark Burford <sparklyballs@gmail.com>
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
+8
View File
@@ -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)
Binary file not shown.
+13
View File
@@ -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)
-----------------------------------
"
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
chown abc:abc /downloads /config /incomplete-downloads
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
exec /sbin/setuser abc /usr/bin/sabnzbdplus --config-file /config --server 0.0.0.0:8080