Skip to content

Commit

Permalink
Merge pull request #16222 from opensourcerouting/fix/docker_alpine_no…
Browse files Browse the repository at this point in the history
…_grpc

docker: Adopt for Alpine Linux 3.20
  • Loading branch information
riw777 authored Jun 24, 2024
2 parents 7a87166 + 09db258 commit 4a4ee47
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions alpine/APKBUILD.in
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ _libdir=/usr/lib
_user=frr

build() {
export ABUILD_APK_INDEX_OPTS="--allow-untrusted"

cd "$builddir"

./configure \
Expand Down
6 changes: 3 additions & 3 deletions docker/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1

# Create a basic stage set up to build APKs
FROM alpine:3.19 as alpine-builder
FROM alpine:3.20 as alpine-builder
RUN apk add \
--update-cache \
abuild \
Expand All @@ -24,7 +24,7 @@ RUN cd /src/libyang \
&& abuild -r -P /pkgs/apk

# This stage builds a dist tarball from the source
FROM alpine:3.19 as source-builder
FROM alpine:3.20 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
Expand Down Expand Up @@ -57,7 +57,7 @@ RUN cd /dist \
&& abuild -r -P /pkgs/apk

# This stage installs frr from the apk
FROM alpine:3.19
FROM alpine:3.20
RUN mkdir -p /pkgs/apk
COPY --from=alpine-apk-builder /pkgs/apk/ /pkgs/apk/
RUN apk add \
Expand Down
2 changes: 2 additions & 0 deletions docker/alpine/libyang/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ makedepends="bison cmake cmocka-dev flex pcre2-dev"
checkdepends="expect grep shunit2"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/CESNET/libyang/archive/v$pkgver.tar.gz"
options="!check"

# secfixes:
# 1.0.215-r1:
Expand All @@ -21,6 +22,7 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/CESNET/libyang/archive/v$pkg
# - CVE-2021-28906

build() {
export ABUILD_APK_INDEX_OPTS="--allow-untrusted"
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
Expand Down

0 comments on commit 4a4ee47

Please sign in to comment.