From 99bd1d8c421680a2d607f7d732fb0c96f5b98fe0 Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Sun, 28 Feb 2016 18:30:27 +0000 Subject: [PATCH 1/5] build with chromecast support --- Dockerfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index d2a93db..027791f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,11 +2,13 @@ FROM linuxserver/baseimage MAINTAINER sparklyballs ENV APTLIST="avahi-daemon libavahi-client3 libav-tools libantlr3c-3.2-0 \ -libconfuse0 libgcrypt20 libmp3lame0 libmxml1 libplist1 libunistring0" +libconfuse0 libgcrypt20 libgnutls28 libjsoncpp0 libmp3lame0 libprotobuf8 \ +libmxml1 libplist1 libunistring0" -ENV BUILD_APTLIST="antlr3 autoconf autotools-dev build-essential cmake gawk gettext git-core gperf libasound2-dev libantlr3c-dev \ -libavahi-client-dev libavcodec-dev libavfilter-dev libavformat-dev libavutil-dev libconfuse-dev \ -libgcrypt11-dev libplist-dev libtool libunistring-dev libswscale-dev libmxml-dev zlib1g-dev" +ENV BUILD_APTLIST="antlr3 autoconf autotools-dev build-essential cmake gawk gettext git-core gperf \ +libasound2-dev libantlr3c-dev libavahi-client-dev libavcodec-dev libavfilter-dev libavformat-dev \ +libavutil-dev libconfuse-dev libgcrypt11-dev libgnutls28-dev libjsoncpp-dev libplist-dev libprotobuf-dev \ +libtool libunistring-dev libswscale-dev libmxml-dev zlib1g-dev" # set source versions ENV CURL_VER="7.45.0" LIBEVENT_VER="2.1.5-beta" TAGLIB_VER="1.9.1" SQLITE_VER="autoconf-3090200" @@ -75,6 +77,7 @@ autoreconf -i && \ --enable-mpd \ --enable-lastfm \ --enable-spotify \ +--enable-chromecast \ --prefix=/app \ --sysconfdir=/etc \ --localstatedir=/var && \ From 9ae2d8866d30648c03c5290cbebb2ed367530614 Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Sun, 28 Feb 2016 18:43:42 +0000 Subject: [PATCH 2/5] swap json package --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 027791f..09fe586 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,12 +2,12 @@ FROM linuxserver/baseimage MAINTAINER sparklyballs ENV APTLIST="avahi-daemon libavahi-client3 libav-tools libantlr3c-3.2-0 \ -libconfuse0 libgcrypt20 libgnutls28 libjsoncpp0 libmp3lame0 libprotobuf8 \ +libconfuse0 libgcrypt20 libgnutls28 libjson0 libmp3lame0 libprotobuf8 \ libmxml1 libplist1 libunistring0" ENV BUILD_APTLIST="antlr3 autoconf autotools-dev build-essential cmake gawk gettext git-core gperf \ libasound2-dev libantlr3c-dev libavahi-client-dev libavcodec-dev libavfilter-dev libavformat-dev \ -libavutil-dev libconfuse-dev libgcrypt11-dev libgnutls28-dev libjsoncpp-dev libplist-dev libprotobuf-dev \ +libavutil-dev libconfuse-dev libgcrypt11-dev libgnutls28-dev libjson0-dev libplist-dev libprotobuf-dev \ libtool libunistring-dev libswscale-dev libmxml-dev zlib1g-dev" # set source versions From d8b30766406659f98a729766c15657523254a925 Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Sun, 28 Feb 2016 19:02:31 +0000 Subject: [PATCH 3/5] updated sources and correct libprotobuf-c0 --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 09fe586..79e4c48 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,16 +2,16 @@ FROM linuxserver/baseimage MAINTAINER sparklyballs ENV APTLIST="avahi-daemon libavahi-client3 libav-tools libantlr3c-3.2-0 \ -libconfuse0 libgcrypt20 libgnutls28 libjson0 libmp3lame0 libprotobuf8 \ +libconfuse0 libgcrypt20 libgnutls28 libjson0 libmp3lame0 libprotobuf-c0 \ libmxml1 libplist1 libunistring0" -ENV BUILD_APTLIST="antlr3 autoconf autotools-dev build-essential cmake gawk gettext git-core gperf \ +ENV BUILD_APTLIST="antlr3 autoconf autotools-dev automake build-essential cmake gawk gettext git-core gperf \ libasound2-dev libantlr3c-dev libavahi-client-dev libavcodec-dev libavfilter-dev libavformat-dev \ -libavutil-dev libconfuse-dev libgcrypt11-dev libgnutls28-dev libjson0-dev libplist-dev libprotobuf-dev \ -libtool libunistring-dev libswscale-dev libmxml-dev zlib1g-dev" +libavutil-dev libconfuse-dev libgcrypt11-dev libgnutls28-dev libjson0-dev libplist-dev libprotobuf-c0-dev \ +libtool libunistring-dev libswscale-dev libmxml-dev readline zlib1g-dev" # set source versions -ENV CURL_VER="7.45.0" LIBEVENT_VER="2.1.5-beta" TAGLIB_VER="1.9.1" SQLITE_VER="autoconf-3090200" +ENV CURL_VER="7.47.1" LIBEVENT_VER="2.1.5-beta" TAGLIB_VER="1.9.1" SQLITE_VER="autoconf-3110000" # add excludes file ADD defaults/excludes /etc/dpkg/dpkg.cfg.d/excludes @@ -26,7 +26,7 @@ mkdir -p /tmp/curl /tmp/taglib /tmp/libevent /tmp/sqlite /tmp/spotify && \ curl -o /tmp/curl.tar.gz -L http://curl.haxx.se/download/curl-$CURL_VER.tar.gz && \ curl -o /tmp/taglib.tar.gz -L http://taglib.github.io/releases/taglib-$TAGLIB_VER.tar.gz && \ curl -o /tmp/libevent.tar.gz -L https://qa.debian.org/watch/sf.php/levent/libevent-$LIBEVENT_VER.tar.gz && \ -curl -o /tmp/sqlite.tar.gz -L https://www.sqlite.org/2015/sqlite-$SQLITE_VER.tar.gz && \ +curl -o /tmp/sqlite.tar.gz -L https://www.sqlite.org/2016/sqlite-$SQLITE_VER.tar.gz && \ curl -o /tmp/spotify_tar.gz -L https://developer.spotify.com/download/libspotify/libspotify-12.1.51-Linux-x86_64-release.tar.gz && \ tar xvf /tmp/curl.tar.gz -C /tmp/curl --strip-components=1 && \ tar xvf /tmp/taglib.tar.gz -C /tmp/taglib --strip-components=1 && \ From 735c5e1fd46713749839eb1bd107d922555859ad Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Sun, 28 Feb 2016 19:05:55 +0000 Subject: [PATCH 4/5] add libreadline-dev --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 79e4c48..3ab6347 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ libmxml1 libplist1 libunistring0" ENV BUILD_APTLIST="antlr3 autoconf autotools-dev automake build-essential cmake gawk gettext git-core gperf \ libasound2-dev libantlr3c-dev libavahi-client-dev libavcodec-dev libavfilter-dev libavformat-dev \ libavutil-dev libconfuse-dev libgcrypt11-dev libgnutls28-dev libjson0-dev libplist-dev libprotobuf-c0-dev \ -libtool libunistring-dev libswscale-dev libmxml-dev readline zlib1g-dev" +libreadline-dev libtool libunistring-dev libswscale-dev libmxml-dev zlib1g-dev" # set source versions ENV CURL_VER="7.47.1" LIBEVENT_VER="2.1.5-beta" TAGLIB_VER="1.9.1" SQLITE_VER="autoconf-3110000" From e1398f08dab4c319a47444b496304d811b19e305 Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Sun, 28 Feb 2016 19:50:29 +0000 Subject: [PATCH 5/5] Update README.md --- README.md | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 615a126..8ca54b2 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,27 @@ ![https://linuxserver.io](https://www.linuxserver.io/wp-content/uploads/2015/06/linuxserver_medium.png) -The [LinuxServer.io](https://www.linuxserver.io/) team brings you another quality container, easy user mapping and community support. Be sure to checkout our [forums](https://forum.linuxserver.io/index.php) or for real-time support our [IRC](https://www.linuxserver.io/index.php/irc/) on freenode at `#linuxserver.io`. +The [LinuxServer.io](https://linuxserver.io) team brings you another container release featuring easy user mapping and community support. Find us for support at: +* [forum.linuxserver.io](https://forum.linuxserver.io) +* [IRC](https://www.linuxserver.io/index.php/irc/) on freenode at `#linuxserver.io` +* [Podcast](https://www.linuxserver.io/index.php/category/podcast/) covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation! # lsiodev/daapd -DAAP (iTunes) media server with support for AirPlay devices, Apple Remote (and compatibles), MPD and internet radio. [Forked-daapd](https://ejurgensen.github.io/forked-daapd/) +![](https://raw.githubusercontent.com/linuxserver/beta-templates/master/lsiodev/img/daapd-git.png) + +DAAP (iTunes) media server with support for AirPlay devices, Apple Remote (and compatibles), Spotify, Chromecast, MPD and internet radio. [Forked-daapd](https://ejurgensen.github.io/forked-daapd/) ## Usage ``` -docker create --name=daapd -v /etc/localtime:/etc/localtime:ro -v :/config -v :/music -e PGID= -e PUID= --net=host lsiodev/daapd +docker create --name=daapd -v :/config \ +-v :/music -e PGID= -e PUID= \ +--net=host lsiodev/daapd ``` **Parameters** * `--net=host` - must be run in host mode -* `-v /etc/localtime` for timesync - *optional* * `-v /config` - Where daapd server stores its config and dbase files. * `-v /music` - map to your music folder * `-e PGID` for GroupID - see below for explanation @@ -25,23 +31,27 @@ It is based on phusion-baseimage with ssh removed, for shell access whilst the c ### User / Group Identifiers -**TL;DR** - The `PGID` and `PUID` values set the user / group you'd like your container to 'run as' to the host OS. This can be a user you've created or even root (not recommended). +Sometimes when using data volumes (`-v` flags) permissions issues can arise between the host OS and the container. We avoid this issue by allowing you to specify the user `PUID` and group `PGID`. Ensure the data volume directory on the host is owned by the same user you specify and it will "just work" ™. -Part of what makes our containers work so well is by allowing you to specify your own `PUID` and `PGID`. This avoids nasty permissions errors with relation to data volumes (`-v` flags). When an application is installed on the host OS it is normally added to the common group called users, Docker apps due to the nature of the technology can't be added to this group. So we added this feature to let you easily choose when running your containers. +In this instance `PUID=1001` and `PGID=1001`. To find yours use `id user` as below: + +``` + $ id + uid=1001(dockeruser) gid=1001(dockergroup) groups=1001(dockergroup) +``` ## Setting up the application Map your music folder, open up itunes on the same LAN to see your music there. -For further setup options of remotes etc, check out the daapd website, link above. - - -## Logs +For further setup options of remotes etc, check out the daapd website, [Forked-daapd](https://ejurgensen.github.io/forked-daapd/). +## Logs and shell * To monitor the logs of the container in realtime `docker logs -f daapd`. - +* Shell access whilst the container is running: `docker exec -it daapd /bin/bash` ## Versions ++ **28.02.2016:** Add chromecast support, bump dependency versions. + **04.01.2016:** Disable ipv6 by default because in v23.4 it doesn't work in unraid with it set. + **17.12.2015:** Add in spotify support. + **25.11.2015:** Initial Release.