Skip to content

Commit

Permalink
⬆️ Upgrades add-on base image to 12.0.0 (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Jun 8, 2022
1 parent c1e31ff commit a409dfa
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 13 deletions.
8 changes: 4 additions & 4 deletions spotify/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:11.1.0
ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:12.0.0
# hadolint ignore=DL3006
FROM ${BUILD_FROM}

Expand All @@ -10,9 +10,9 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN \
apk add --no-cache --virtual .build-dependencies \
build-base=0.5-r2 \
cargo=1.56.1-r0 \
git=2.34.2-r0 \
protobuf-dev=3.18.1-r1 \
cargo=1.60.0-r2 \
git=2.36.1-r0 \
protobuf-dev=3.18.1-r2 \
pulseaudio-dev=15.0-r2 \
\
&& apk add --no-cache \
Expand Down
8 changes: 4 additions & 4 deletions spotify/build.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
build_from:
aarch64: ghcr.io/hassio-addons/base/aarch64:11.1.0
amd64: ghcr.io/hassio-addons/base/amd64:11.1.0
armv7: ghcr.io/hassio-addons/base/armv7:11.1.0
i386: ghcr.io/hassio-addons/base/i386:11.1.0
aarch64: ghcr.io/hassio-addons/base/aarch64:12.0.0
amd64: ghcr.io/hassio-addons/base/amd64:12.0.0
armv7: ghcr.io/hassio-addons/base/armv7:12.0.0
i386: ghcr.io/hassio-addons/base/i386:12.0.0
codenotary:
base_image: [email protected]
signer: [email protected]
1 change: 1 addition & 0 deletions spotify/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ arch:
- i386
host_network: true
audio: true
init: false
options:
name: Home Assistant
bitrate: 160
Expand Down
10 changes: 6 additions & 4 deletions spotify/rootfs/etc/services.d/spotifyd/finish
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/usr/bin/execlineb -S0
#!/command/with-contenv bashio
# ==============================================================================
# Home Assistant Community Add-on: Spotify Connect
# Take down the S6 supervision tree when spotifyd fails
# ==============================================================================
if -n { s6-test $# -ne 0 }
if -n { s6-test ${1} -eq 256 }
if [[ "${1}" -ne 0 ]] && [[ "${1}" -ne 256 ]]; then
bashio::log.warning "spotifyd crashed, halting add-on"
/run/s6/basedir/bin/halt
fi

s6-svscanctl -t /var/run/s6/services
bashio::log.info "spotifyd stoped, restarting..."
2 changes: 1 addition & 1 deletion spotify/rootfs/etc/services.d/spotifyd/run
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/with-contenv bashio
#!/command/with-contenv bashio
# ==============================================================================
# Home Assistant Community Add-on: Spotify Connect
# Runs librespot
Expand Down

0 comments on commit a409dfa

Please sign in to comment.