Merge pull request #20379 from FRRouting/mergify/bp/stable/10.5/pr-20004
Some checks are pending
github-ci / Ubuntu 22.04 amd64 Build (push) Waiting to run
github-ci / Ubuntu 22.04 arm64 Build (push) Waiting to run
github-ci / Ubuntu 24.04 amd64 Build (push) Waiting to run
github-ci / Ubuntu 24.04 arm64 Build (push) Waiting to run
github-ci / Ubuntu 22.04 amd64 Test (push) Blocked by required conditions
github-ci / Ubuntu 22.04 arm64 Test (push) Blocked by required conditions
github-ci / Ubuntu 24.04 amd64 Test (push) Blocked by required conditions
github-ci / Ubuntu 24.04 arm64 Test (push) Blocked by required conditions

Alpine Docker fix ups for 3.22 (backport #20004)
This commit is contained in:
Donald Sharp 2026-01-07 05:55:56 -05:00 committed by GitHub
commit 262ccf6d3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 14 additions and 7 deletions

View file

@ -11,7 +11,7 @@ makedepends="ncurses-dev net-snmp-dev gawk texinfo perl
acct autoconf automake bash binutils bison bsd-compat-headers build-base
c-ares c-ares-dev ca-certificates cryptsetup-libs curl device-mapper-libs
expat fakeroot flex fortify-headers gdbm git gmp json-c-dev kmod
lddtree libacl libatomic libattr libblkid libburn libbz2 libc-dev
lddtree acl libatomic libattr libblkid libburn libbz2 libc-dev
libcap-dev libcurl libedit libffi libgcc libgomp libisoburn libisofs
libltdl openssl libssh2 libstdc++ libtool libuuid
linux-headers lzip lzo m4 make mkinitfs mpc1 mpfr4 mtools musl-dev

View file

@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1
# Create a basic stage set up to build APKs
FROM alpine:3.20 as alpine-builder
FROM alpine:3.22 as alpine-builder
RUN apk add \
--update-cache \
abuild \
@ -17,14 +17,15 @@ FROM alpine-builder as alpine-apk-builder-libyang
RUN mkdir -p /src/libyang
COPY docker/alpine/libyang/APKBUILD /src/libyang
RUN chown -R builder /pkgs /src
RUN source /src/libyang/APKBUILD && apk add $makedepends
USER builder
RUN cd /src/libyang \
&& abuild checksum \
&& git init \
&& abuild -r -P /pkgs/apk
&& abuild -P /pkgs/apk
# This stage builds a dist tarball from the source
FROM alpine:3.20 as source-builder
FROM alpine:3.22 as source-builder
RUN mkdir -p /src/alpine /pkgs/apk
COPY alpine/APKBUILD.in /src/alpine
COPY --from=alpine-apk-builder-libyang /pkgs/apk/src /pkgs/apk
@ -51,14 +52,20 @@ COPY --from=alpine-apk-builder-libyang /pkgs/apk/src /pkgs/apk
RUN cd /pkgs/apk && apk add --allow-untrusted */*.apk
RUN find /pkgs/apk -type f -name APKINDEX.tar.gz -delete
RUN chown -R builder /dist /pkgs
RUN source /dist/APKBUILD.in \
&& apk add \
--no-cache \
--update-cache \
$makedepends \
$depends
USER builder
RUN cd /dist \
&& abuild checksum \
&& git init \
&& abuild -r -P /pkgs/apk
&& abuild -P /pkgs/apk
# This stage installs frr from the apk
FROM alpine:3.20
FROM alpine:3.22
RUN mkdir -p /pkgs/apk
COPY --from=alpine-apk-builder /pkgs/apk/ /pkgs/apk/
RUN apk add \

View file

@ -7,7 +7,7 @@ pkgdesc="YANG data modelling language parser and toolkit"
url="https://github.com/CESNET/libyang"
arch="all"
license="BSD-3-Clause-Clear"
makedepends="bison cmake cmocka-dev flex pcre2-dev"
makedepends="bison cmake cmocka-dev flex pcre2-dev acl"
checkdepends="expect grep shunit2"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/CESNET/libyang/archive/v$pkgver.tar.gz"