Browse Source

clear lock file, update readme

master
dave 3 years ago
parent
commit
87eadb0241
  1. 11
      Dockerfile
  2. 6
      README.md
  3. 4
      start

11
Dockerfile

@ -7,15 +7,14 @@ RUN apt-get update && \
apt-get install -y wget && \
apt-get install -y openjdk-8-jre-headless wget sudo
RUN wget -qO /tmp/subsonic.deb https://s3-eu-west-1.amazonaws.com/subsonic-public/download/subsonic-6.1.beta2.deb && \
RUN mkdir /tools && \
wget -qO /tmp/subsonic.deb https://s3-eu-west-1.amazonaws.com/subsonic-public/download/subsonic-6.1.5.deb && \
wget -qO /tools/hsqldb-1.8.0.5.jar http://repo1.maven.org/maven2/hsqldb/hsqldb/1.8.0.5/hsqldb-1.8.0.5.jar && \
wget -qO /tools/sqltool-2.0.0.jar http://repo1.maven.org/maven2/org/hsqldb/sqltool/2.0.0/sqltool-2.0.0.jar && \
dpkg -i /tmp/subsonic.deb && \
useradd subsonic && \
mkdir /var/subsonic/lucene2 && \
chown -R subsonic:subsonic /var/subsonic && \
mkdir /tools && \
wget -qO /tools/hsqldb-1.8.0.5.jar http://repo1.maven.org/maven2/hsqldb/hsqldb/1.8.0.5/hsqldb-1.8.0.5.jar && \
wget -qO /tools/sqltool-2.0.0.jar http://repo1.maven.org/maven2/org/hsqldb/sqltool/2.0.0/sqltool-2.0.0.jar
chown -R subsonic:subsonic /var/subsonic
ADD start /start
ENTRYPOINT ["/start"]

6
README.md

@ -10,12 +10,14 @@ docker-subsonic
*Persistence*
To make the subsonic database persistent, a file and a dir must be mounted to the host:
To make the subsonic database persistent, two paths - a dir and a file - need to be persistent. Additionally, Subsonic generates an index of metadata that should be made persistent as well.
* -v /hostpath/subsonic/db:/var/subsonic/db
* -v /hostpath/subsonic/subsonic.properties:/var/subsonic/subsonic.properties
* -v /hostpath/subsonic/db:/var/subsonic/db
* -v /hostpath/subsonic/metadata:/var/subsonic/lucene2
Both locations must be read/writable by uid 1000.
All persistent locations must be read/writable by uid/gid 1000.
*TODO*

4
start

@ -10,7 +10,7 @@ fi
# Start the main service
rm -vf /var/subsonic/db/subsonic.lck
cd /usr/share/subsonic
chown -R subsonic:subsonic /var/subsonic
sudo -Hu subsonic java -Xmx256m -Dsubsonic.home=/var/subsonic -Dsubsonic.host=0.0.0.0 -Dsubsonic.port=4051 -Dsubsonic.httpsPort=4050 -Dsubsonic.contextPath=/ -Dsubsonic.defaultMusicFolder=/var/music -Dsubsonic.defaultPodcastFolder=/var/music/Podcast -Dsubsonic.defaultPlaylistFolder=/var/playlists -Djava.awt.headless=true -verbose:gc -jar subsonic-booter-jar-with-dependencies.jar
exec sudo -Hu subsonic java -Xmx256m -Dsubsonic.home=/var/subsonic -Dsubsonic.host=0.0.0.0 -Dsubsonic.port=4051 -Dsubsonic.httpsPort=4050 -Dsubsonic.contextPath=/ -Dsubsonic.defaultMusicFolder=/var/music -Dsubsonic.defaultPodcastFolder=/var/music/Podcast -Dsubsonic.defaultPlaylistFolder=/var/playlists -Djava.awt.headless=true -verbose:gc -jar subsonic-booter-jar-with-dependencies.jar

Loading…
Cancel
Save