adding a subsonic container
This commit is contained in:
parent
1ed09e1af7
commit
748c7bfcbe
2 changed files with 29 additions and 0 deletions
14
subsonic/Dockerfile
Normal file
14
subsonic/Dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
|||
FROM vbatts/slackware
|
||||
MAINTAINER Vincent Batts <vbatts@slackware.com>
|
||||
|
||||
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
|
15
subsonic/start.sh
Executable file
15
subsonic/start.sh
Executable file
|
@ -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
|
||||
|
Loading…
Reference in a new issue