Skip to content

Commit

Permalink
Upgrade base to 17.1.1 and resolve problems with building librespot 0…
Browse files Browse the repository at this point in the history
….6.0 (#281)

* feat: upgrade to 17.1.0 and resolve problems with librespot 0.6.0

* fix: build librespot  with libmdns

* ⬆️ Bump base image version to 17.1.1 in Dockerfile and build.yaml

---------

Co-authored-by: Franck Nijhof <git@frenck.dev>
  • Loading branch information
ImJustToNy and frenck authored Feb 7, 2025
1 parent 4d992cb commit 937b5a2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
19 changes: 12 additions & 7 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:14.3.3
ARG BUILD_FROM=ghcr.io/hassio-addons/base:17.1.1
# hadolint ignore=DL3006
FROM ${BUILD_FROM}

Expand All @@ -11,24 +11,29 @@ ARG LIBRESPOT_VERSION="0.6.0"
RUN \
apk add --no-cache --virtual .build-dependencies \
build-base=0.5-r3 \
cargo=1.71.1-r0 \
git=2.40.4-r0 \
protobuf-dev=3.21.12-r2 \
pulseaudio-dev=16.1-r10 \
cargo=1.83.0-r0 \
git=2.47.2-r0 \
protobuf-dev=24.4-r4 \
pulseaudio-dev=17.0-r4 \
cmake=3.31.1-r0 \
clang19-libclang=19.1.4-r0 \
\
&& apk add --no-cache \
pulseaudio=16.1-r10 \
pulseaudio=17.0-r4 \
\
&& cargo install --force --locked bindgen-cli \
&& export PATH="$HOME/.cargo/bin:$PATH" \
&& cargo install \
--locked \
--no-default-features \
--features pulseaudio-backend \
--features "pulseaudio-backend with-libmdns" \
--root /usr \
--bin librespot \
--version "${LIBRESPOT_VERSION}" \
--verbose \
-- librespot \
\
&& cargo uninstall bindgen-cli \
&& apk del --no-cache --purge .build-dependencies \
&& rm -fr \
/tmp/* \
Expand Down
6 changes: 3 additions & 3 deletions spotify/build.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
build_from:
aarch64: ghcr.io/hassio-addons/base:14.3.3
amd64: ghcr.io/hassio-addons/base:14.3.3
armv7: ghcr.io/hassio-addons/base:14.3.3
aarch64: ghcr.io/hassio-addons/base:17.1.1
amd64: ghcr.io/hassio-addons/base:17.1.1
armv7: ghcr.io/hassio-addons/base:17.1.1
codenotary:
base_image: codenotary@frenck.dev
signer: codenotary@frenck.dev

0 comments on commit 937b5a2

Please sign in to comment.