Adding preliminary bindings
This commit is contained in:
@ -34,15 +34,6 @@ RUN set -ex \
|
||||
Mopidy-YouTube \
|
||||
pyopenssl \
|
||||
youtube-dl \
|
||||
# Clone Iris from current directory and install in development mode.
|
||||
# This allows a binding at "/iris" to map to your local folder for development.
|
||||
&& cd /iris \
|
||||
&& python setup.py develop \
|
||||
&& cd / \
|
||||
&& mkdir -p /var/lib/mopidy/.config \
|
||||
&& ln -s /config /var/lib/mopidy/.config/mopidy \
|
||||
# Allow mopidy user to run system commands (restart, local scan, etc)
|
||||
&& echo "mopidy ALL=NOPASSWD: /iris/mopidy_iris/system.sh" >> /etc/sudoers \
|
||||
# Install Snapcast
|
||||
# This is the most reliable way to get audio out of a Docker instance.
|
||||
&& curl -L https://github.com/badaix/snapcast/releases/download/v0.15.0/snapserver_0.15.0_amd64.deb -o snapserver.deb \
|
||||
@ -54,13 +45,22 @@ RUN set -ex \
|
||||
curl \
|
||||
gcc \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ~/.cache
|
||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ~/.cache \
|
||||
|
||||
# Clone Iris from current directory and install in development mode.
|
||||
# This allows a binding at "/iris" to map to your local folder for development.
|
||||
&& cd /iris \
|
||||
&& python setup.py develop \
|
||||
&& mkdir -p /var/lib/mopidy/.config \
|
||||
&& ln -s /config /var/lib/mopidy/.config/mopidy \
|
||||
# Allow mopidy user to run system commands (restart, local scan, etc)
|
||||
&& echo "mopidy ALL=NOPASSWD: /iris/mopidy_iris/system.sh" >> /etc/sudoers
|
||||
|
||||
# Start helper script.
|
||||
COPY docker/entrypoint.sh /entrypoint.sh
|
||||
|
||||
# Default configuration.
|
||||
COPY docker/mopidy.conf /config/mopidy.conf
|
||||
COPY docker/mopidy.sample.conf /config/mopidy.conf
|
||||
|
||||
# Copy the pulse-client configuratrion.
|
||||
COPY docker/pulse-client.conf /etc/pulse/client.conf
|
||||
|
||||
Reference in New Issue
Block a user