Skip to content

Commit

Permalink
chore(docker): update to Alpine 3.19 (#502)
Browse files Browse the repository at this point in the history
* update to Alpine 3.19

check out utfcpp (taglib2 dependency) from git, because Alpine 3.19
packages incompatible utfcpp 4.0, resulting in build failure

* use utfcpp package and specify the include path
  • Loading branch information
lomereiter authored May 20, 2024
1 parent 14c34c6 commit 0d7d92d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.18 AS builder-taglib
FROM alpine:3.19 AS builder-taglib
WORKDIR /tmp
COPY alpine/taglib/APKBUILD .
RUN apk update && \
Expand Down Expand Up @@ -26,7 +26,7 @@ RUN go mod download
COPY . .
RUN GOOS=linux go build -o gonic cmd/gonic/gonic.go

FROM alpine:3.18
FROM alpine:3.19
LABEL org.opencontainers.image.source https://github.com/sentriz/gonic
RUN apk add -U --no-cache \
ffmpeg \
Expand Down
9 changes: 5 additions & 4 deletions alpine/taglib/APKBUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Contributor: Leo <[email protected]>
# Maintainer: Natanael Copa <[email protected]>
pkgname=taglib2
pkgver=2.0
pkgver=2.0.1
pkgrel=0
pkgdesc="Library for reading and editing metadata of several popular audio formats"
url="https://taglib.github.io/"
Expand Down Expand Up @@ -30,10 +30,11 @@ build() {
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DWITH_ZLIB=ON \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_EXAMPLES=ON \
-DBUILD_EXAMPLES=OFF \
-DBUILD_TESTING="$(want_check && echo ON || echo OFF)" \
-DVISIBILITY_HIDDEN=ON
cmake --build build
CPLUS_INCLUDE_PATH="/usr/include/utf8cpp" \
cmake --build build
}

check() {
Expand All @@ -51,5 +52,5 @@ _lib() {
}

sha512sums="
099d02b2eab033f5702a8cb03e70752d7523c6f8c2f3eebdd0bcd939eafbdca3f2a6c82452983904b5822cfa45f2707ed866c3419508df9d43bf5c0b3a476f6c taglib-2.0.tar.gz
25ee89293a96d7f8dca6276f822bdaef01fd98503b78c20ffeac8e1d9821de7273a5127146aa798d304c6a995cb2b7229a205aff1cc261b5d4fa9e499dda0439 taglib-2.0.1.tar.gz
"

0 comments on commit 0d7d92d

Please sign in to comment.