From a5b53f38ba9d7327d3893bf036c96cc8db6ac1a2 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Wed, 4 Apr 2018 19:49:08 -0400 Subject: [PATCH] changes to not use tomcat, but just standalone --- Dockerfile | 36 ++++++------- server.xml | 149 ----------------------------------------------------- 2 files changed, 18 insertions(+), 167 deletions(-) delete mode 100644 server.xml diff --git a/Dockerfile b/Dockerfile index 362e8e9..db83006 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,28 +1,28 @@ -FROM tomcat:8-jre8 -LABEL MAINTAINER Cyrille Nofficial - -ENV SUBSONIC_VERSION 6.1.1 - -LABEL version="$SUBSONIC_VERSION" +FROM debian +ENV SUBSONIC_VERSION 6.1.3 LABEL description="Subsonic media streamer" +LABEL version="$SUBSONIC_VERSION" RUN apt-get update &&\ - apt-get -y install libav-tools lame &&\ + apt-get -y dist-upgrade &&\ + apt-get -y install openjdk-8-jre-headless wget libav-tools lame &&\ mkdir -p /opt/data/transcode /opt/music/ /opt/playlist/ /opt/podcast/ &&\ ln -s /usr/bin/lame /opt/data/transcode/lame &&\ ln -s /usr/bin/avconv /opt/data/transcode/ffmpeg &&\ - cd ${CATALINA_HOME}/webapps/ &&\ - rm -rf ROOT &&\ - wget "http://downloads.sourceforge.net/project/subsonic/subsonic/$SUBSONIC_VERSION/subsonic-$SUBSONIC_VERSION-war.zip?r=http%3A%2F%2Fwww.subsonic.org%2Fpages%2Fdownload2.jsp%3Ftarget%3Dsubsonic-$SUBSONIC_VERSION-standalone.tar.gz&ts=1431096340&use_mirror=garr" \ - -O subsonic.war.zip --quiet &&\ - unzip subsonic.war.zip && rm subsonic.war.zip && mv subsonic.war ROOT.war - -ADD server.xml /usr/local/tomcat/conf/ -ENV JAVA_OPTS="-Dsubsonic.contextPath=/ -Dsubsonic.home=/opt/data -Dsubsonic.defaultMusicFolder=/opt/music/ -Dsubsonic.defaultPodcastFolder=/opt/podcast/ -Dsubsonic.defaultPlaylistFolder=/opt/playlist/" - + wget "https://sourceforge.net/projects/subsonic/files/subsonic/$SUBSONIC_VERSION/subsonic-$SUBSONIC_VERSION-standalone.tar.gz/download" -O subsonic.tar.gz --quiet &&\ + mkdir -p /opt/subsonic &&\ + tar -C /opt/subsonic -xf subsonic.tar.gz &&\ + rm /subsonic.tar.gz +EXPOSE 4040 +EXPOSE 4043 VOLUME /opt/data VOLUME /opt/music/ VOLUME /opt/playlist/ VOLUME /opt/podcast/ - - +ENV SUBSONIC_HOME /opt/data +ENV SUBSONIC_PORT 4040 +ENV SUBSONIC_HTTPS_PORT 4043 +ENV SUBSONIC_DEFAULT_MUSIC_FOLDER /opt/music +ENV SUBSONIC_DEFAULT_PODCAST_FOLDER /opt/podcast +ENV SUBSONIC_DEFAULT_PLAYLIST_FOLDER /opt/playlist +CMD /opt/subsonic/subsonic.sh && tail -f /opt/data/subsonic_sh.log diff --git a/server.xml b/server.xml deleted file mode 100644 index 7dce9e6..0000000 --- a/server.xml +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -