From 39dbd78837706080f3764d211b0e6895fb5437f0 Mon Sep 17 00:00:00 2001 From: Brett Miller Date: Wed, 4 Sep 2024 18:16:22 +0100 Subject: [PATCH 1/2] Moved to dev branch tarball Before this change the dockerfile was using the tarball for a tag ref 0.4.2, last release was 2022. This change moves to the dev branch tarball which supposedly works. --- Dockerfile.pulseaudio.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.pulseaudio.template b/Dockerfile.pulseaudio.template index c6c3e82..a2324ce 100644 --- a/Dockerfile.pulseaudio.template +++ b/Dockerfile.pulseaudio.template @@ -8,7 +8,7 @@ ARG LIBRESPOT_VERSION=0.4.2 RUN install_packages alsa-lib-dev pulseaudio-dev cargo curl -RUN curl -sL "https://github.com/librespot-org/librespot/archive/refs/tags/v${LIBRESPOT_VERSION}.tar.gz" --output librespot.tar.gz && \ +RUN curl -sL "https://github.com/librespot-org/librespot/archive/dev.tar.gz" --output librespot.tar.gz && \ mkdir /app/librespot-src && \ tar -zxvf librespot.tar.gz --directory /app/librespot-src --strip-components=1 From 5d4ec0733b483bb01dbe0c4333281ac79d838beb Mon Sep 17 00:00:00 2001 From: Brett Miller Date: Fri, 6 Sep 2024 16:31:33 +0000 Subject: [PATCH 2/2] Template warning and shell script update When building the image there was a warning on case differences This modifies soo all references are upper case. Shell script for building and pushing to docker hub was also using the tmigone docker repo so required modification to run. --- Dockerfile.pulseaudio.template | 2 +- scripts/build-pulseaudio.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile.pulseaudio.template b/Dockerfile.pulseaudio.template index a2324ce..9dd7b6a 100644 --- a/Dockerfile.pulseaudio.template +++ b/Dockerfile.pulseaudio.template @@ -1,7 +1,7 @@ ARG BALENA_ARCH=%%BALENA_ARCH%% # Build process from: https://git.alpinelinux.org/aports/tree/testing/librespot/APKBUILD -FROM balenalib/$BALENA_ARCH-alpine:edge as librespot-builder +FROM balenalib/$BALENA_ARCH-alpine:edge AS librespot-builder WORKDIR /app ARG LIBRESPOT_VERSION=0.4.2 diff --git a/scripts/build-pulseaudio.sh b/scripts/build-pulseaudio.sh index 7b22594..c9a1262 100755 --- a/scripts/build-pulseaudio.sh +++ b/scripts/build-pulseaudio.sh @@ -38,8 +38,8 @@ function create_and_push_manifest() { docker manifest push $NAME:$TAG } -LIBRESPOT_VERSION="0.4.2" -DOCKER_NAMESPACE="tmigone" +LIBRESPOT_VERSION="0.4.2-dev" +DOCKER_NAMESPACE="brettmillerit" build_and_push_image "Dockerfile.pulseaudio.template" "${DOCKER_NAMESPACE}/librespot:$LIBRESPOT_VERSION-pulseaudio-rpi" "rpi" "linux/arm/v6" "$LIBRESPOT_VERSION" build_and_push_image "Dockerfile.pulseaudio.template" "${DOCKER_NAMESPACE}/librespot:$LIBRESPOT_VERSION-pulseaudio-armv7hf" "armv7hf" "linux/arm/v7" "$LIBRESPOT_VERSION"