-
Notifications
You must be signed in to change notification settings - Fork 425
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #621 from fabienheureux/feature/bring-airplay-2-su…
…pport Add Airplay 2 support - Upgrade shairport version
- Loading branch information
Showing
3 changed files
with
28 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
FROM mikebrady/shairport-sync:3.3.8 as shairport | ||
FROM mikebrady/shairport-sync:4.1.1 as shairport | ||
WORKDIR /usr/src | ||
|
||
ENV DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket | ||
|
||
# DL4006: https://github.com/hadolint/hadolint/wiki/DL4006 | ||
SHELL ["/bin/ash", "-eo", "pipefail", "-c"] | ||
SHELL ["/bin/sh", "-eo", "pipefail", "-c"] | ||
|
||
# shairport-sync docker image doesn't include pulseaudio support so we use ALSA bridge | ||
ENV PULSE_SERVER=tcp:localhost:4317 | ||
RUN apk add --no-cache curl~=7 && \ | ||
RUN apk add --no-cache supervisor curl~=7 && \ | ||
curl -skL https://raw.githubusercontent.com/balena-labs-projects/audio/master/scripts/alsa-bridge/alpine-setup.sh | sh \ | ||
&& apk del curl | ||
|
||
COPY start.sh /usr/src/ | ||
COPY supervisor.conf /usr/src/supervisor.conf | ||
|
||
# shairport-sync image entrypoint starts dbus and avahi daemons that we don't need | ||
ENTRYPOINT [] | ||
CMD [ "/bin/ash", "/usr/src/start.sh" ] | ||
CMD ["supervisord","-c","/usr/src/supervisor.conf"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[supervisord] | ||
nodaemon=true | ||
root=true | ||
|
||
[program:shairport-sync] | ||
command=/bin/sh /usr/src/start.sh | ||
autorestart=true | ||
stderr_logfile=/dev/stdout | ||
stderr_logfile_maxbytes = 0 | ||
stdout_logfile=/dev/stdout | ||
stdout_logfile_maxbytes = 0 | ||
|
||
[program:nqptp] | ||
command=nqptp | ||
autostart=true | ||
autorestart=true | ||
stderr_logfile=/dev/stdout | ||
stderr_logfile_maxbytes = 0 | ||
stdout_logfile=/dev/stdout | ||
stdout_logfile_maxbytes = 0 |