mherger wrote:
> >I'd have quite a few questions wrt. to your image I'd be happy to
> discuss with you.
>
I realise these were questions for justi, but some of the following may
be useful:
>
> - locale: can this be defined based on the host system's locale instead
>
> of setting it in the dockerfile?
>
The Docker image I'm using has the following in the accompanying
docker-compose.yml file:
Code:
--------------------
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
--------------------
which seem to solve this problem quite well - if it's not clear, the
host's copies of these files are mapped (read only) to the container.
>
> - would Spotty work inside such an image? I see that you forward 5353
> which might be part of what's required.
>
I'm using Spotty and it works fine... but I'm not necessarily using the
ideal configuration - see the next point.
>
> - what about popular plugins like philippe_44's, which expose virtual
> player? Would they be working, because the helper would run inside the
> container (while talking to devices outside)? Or would they fail to eg.
>
> find speakers, because they're on a different network?
>
I spent some time trying to get Philippe's Shairtunes 2W plugin to work
(not sure if this is the one you mean) and although it's working
successfully, I am currently cheating by using the container in "host"
networking mode (in other words, it shares the network stack with the
host, rather than having its own bridged to the host's interface). This
wasn't strictly necessary, but (after trying several potential
workarounds with relatively complicated networking arrangements), it
looked like I would have had to disable the host's mDNS server.
The problem is that Shairport needs to advertise on mDNS. It does this
by looking for some CLI tools used by popular mDNS systems and, if it
doesn't find them (which it obviously can't in a container, even if they
are present on the host), it starts its own server. Avahi, which is the
mDNS daemon that comes with Raspbian (and probably many other distros),
will share the mDNS port (UDP 5353) with other servers, but Docker needs
to get exclusive use of a port to forward it to a container and this
fails.
------------------------------------------------------------------------
BobSammers's Profile: http://forums.slimdevices.com/member.php?userid=66026
View this thread: http://forums.slimdevices.com/showthread.php?t=111828
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix