From 748c7bfcbef485635d9b37c046933cb74268333b Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Wed, 19 Mar 2014 10:22:23 -0400 Subject: [PATCH] adding a subsonic container --- subsonic/Dockerfile | 14 ++++++++++++++ subsonic/start.sh | 15 +++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 subsonic/Dockerfile create mode 100755 subsonic/start.sh diff --git a/subsonic/Dockerfile b/subsonic/Dockerfile new file mode 100644 index 0000000..23e3d25 --- /dev/null +++ b/subsonic/Dockerfile @@ -0,0 +1,14 @@ +FROM vbatts/slackware +MAINTAINER Vincent Batts + +RUN slackpkg install -batch=on -default_answer=y cxxlibs glib2 libffi +RUN wget http://www.slackware.com/~alien/slackbuilds/openjdk/pkg64/14.1/openjre-7u51_b31-x86_64-1alien.txz && installpkg openjre-7u51_b31-x86_64-1alien.txz && rm openjre-7u51_b31-x86_64-1alien.txz +RUN cd /tmp/ && wget http://downloads.sourceforge.net/project/subsonic/subsonic/4.9/subsonic-4.9-standalone.tar.gz && tar xf subsonic-4.9-standalone.tar.gz && rm subsonic-4.9-standalone.tar.gz + +ADD start.sh /start.sh + +EXPOSE 4040 +VOLUME ["/data", "/music"] +CMD ["/start.sh"] + +# docker run -i -t -v $(pwd)/Music:/music -v $(pwd)/subsonic:/data -P vbatts/subsonic diff --git a/subsonic/start.sh b/subsonic/start.sh new file mode 100755 index 0000000..f9ef1fe --- /dev/null +++ b/subsonic/start.sh @@ -0,0 +1,15 @@ +#! /bin/sh + +set -e + +export JAVA_HOME=/usr/lib64/java/jre + +mkdir -p /data /music + +sh /tmp/subsonic.sh \ + --home=/data \ + --default-music-folder=/music \ + --max-memory=${MAX_MEMORY:-100} \ + --context-path=${CONTEXT_PATH:-/} +tail -f /data/*.log +