Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ RUN set -ex \
&& echo "**** install runtime packages ****" \
&& apk add --no-cache -U --upgrade \
alsa-utils \
dbus \
librespot@testing=~${LIBRESPOT_RELEASE} \
shairport-sync@testing \
snapcast=~${SNAPCAST_RELEASE} \
Expand All @@ -28,6 +29,7 @@ RUN set -ex \
# environment settings
ENV \
START_SNAPCLIENT=false \
START_AIRPLAY=false \
SNAPCLIENT_OPTS="" \
SNAPSERVER_OPTS=""

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ services:
# - SNAPCLIENT_OPTS=--host snapcast --soundcard <ID>
# => Don't use quotes for SNAPCLIENT_OPTS="" !
# - HOST_AUDIO_GROUP=<AUDIO-GID> # set to GID of host audio group
- START_AIRPLAY=false # set to 'true' to enable Airplay support via Shairport-sync
restart: "unless-stopped"
ports:
- 1704:1704
Expand Down
1 change: 1 addition & 0 deletions docker-compose.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ services:
# - SNAPCLIENT_OPTS=--host snapcast --soundcard <ID>
# => Don't use quotes for SNAPCLIENT_OPTS="" !
# - HOST_AUDIO_GROUP=<AUDIO-GID> # set to GID of host audio group
- START_AIRPLAY=false # set to 'true' to enable Airplay support via Shairport-sync
restart: "unless-stopped"
ports:
- 1704:1704 # port for the actual audio streaming
Expand Down
Empty file.
2 changes: 2 additions & 0 deletions root/etc/s6-overlay/s6-rc.d/svc-dbus/finish
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/command/execlineb -S0
/run/s6/basedir/bin/halt
1 change: 1 addition & 0 deletions root/etc/s6-overlay/s6-rc.d/svc-dbus/notification-fd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3
7 changes: 7 additions & 0 deletions root/etc/s6-overlay/s6-rc.d/svc-dbus/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/with-contenv bash

if [ "$START_AIRPLAY" = 'true' ]; then
mkdir -p /run/dbus
exec s6-notifyoncheck -d -n 300 -w 1000 -c "dbus-send --system / org.freedesktop.DBus.Peer.Ping" \
dbus-daemon --system --nofork --nopidfile
fi
1 change: 1 addition & 0 deletions root/etc/s6-overlay/s6-rc.d/svc-dbus/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
longrun
Empty file.