Skip to content

Commit

Permalink
fix and tidy some things
Browse files Browse the repository at this point in the history
  • Loading branch information
shawaj committed Jan 3, 2021
1 parent 2d57759 commit 9cbdc52
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
13 changes: 6 additions & 7 deletions plugins/tidal/Dockerfile.template
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
FROM balenalib/%%BALENA_MACHINE_NAME%%-debian:buster

RUN install_packages git curl libportaudio2* libflac++6v5* libavahi-common3 libavahi-client3 \
&& echo "deb http://archive.raspbian.org/raspbian stretch main" >> /etc/apt/sources.list \
# Audio block setup
ENV PULSE_SERVER=tcp:localhost:4317
RUN curl -sL https://raw.githubusercontent.com/balenablocks/audio/master/scripts/alsa-bridge/debian-setup.sh | sh

RUN echo "deb http://archive.raspbian.org/raspbian stretch main" >> /etc/apt/sources.list \
&& apt update \
&& apt install libavformat57 \
&& install_packages multiarch-support libavformat57 git libportaudio2* libflac++6v5* libavahi-common3 libavahi-client3 \
&& mkdir /usr/ifi \
&& cd /usr/ifi \
&& curl -k -O -L http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u12_armhf.deb \
Expand All @@ -15,10 +18,6 @@ RUN install_packages git curl libportaudio2* libflac++6v5* libavahi-common3 liba
&& chmod +x /usr/ifi/ifi-tidal-release/bin/tidal_connect_application \
&& chmod +x /usr/ifi/ifi-tidal-release/pa_devs/run.sh

# Audio block setup
ENV PULSE_SERVER=tcp:localhost:4317
RUN curl -sL https://raw.githubusercontent.com/balenablocks/audio/master/scripts/alsa-bridge/debian-setup.sh | sh

COPY start.sh /usr/src/

CMD [ "/bin/bash", "/usr/src/start.sh" ]
8 changes: 4 additions & 4 deletions plugins/tidal/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ set -- /usr/ifi/ifi-tidal-release/bin/tidal_connect_application \
--codec-mpegh true \
--codec-mqa false \
--model-name "balenaSound Streamer" \
--disable-app-security false \
--disable-web-security false \
--enable-mqa-passthrough false \
--log-level 3
--disable-app-security false \
--disable-web-security false \
--enable-mqa-passthrough false \
--log-level 3
"$@"

exec "$@"

0 comments on commit 9cbdc52

Please sign in to comment.