Skip to content

Commit

Permalink
Merge pull request #15457 from opensourcerouting/fix/docker_builds_fo…
Browse files Browse the repository at this point in the history
…r_10.0

docker: Fix build for Alpine Linux after the recent changes since 9.1
  • Loading branch information
riw777 authored Mar 12, 2024
2 parents 1942951 + a201559 commit dfa2776
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 369 deletions.
11 changes: 7 additions & 4 deletions alpine/APKBUILD.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ source="$pkgname-$pkgver.tar.gz"

builddir="$srcdir"/$pkgname-$pkgver

_sysconfdir=/etc
_sbindir=/usr/lib/frr
_libdir=/usr/lib
_user=frr
Expand All @@ -36,7 +37,7 @@ build() {

./configure \
--prefix=/usr \
--sysconfdir=/etc \
--sysconfdir=$_sysconfdir \
--localstatedir=/var \
--sbindir=$_sbindir \
--libdir=$_libdir \
Expand All @@ -61,7 +62,9 @@ package() {
cd "$builddir"
make DESTDIR="$pkgdir" install

install -Dm644 "$builddir"/tools/etc/frr/daemons "$pkgdir"$_sysconfdir/daemons
install -d "$pkgdir"/etc/init.d
ln -s ${_sbindir}/frr "$pkgdir"/etc/init.d/frr
install -d $pkgdir/$_sysconfdir/frr
install -m 0644 tools/etc/frr/daemons $pkgdir/$_sysconfdir/frr/daemons

install -d $pkgdir/$_sysconfdir/init.d
ln -s ${_sbindir}/frr $pkgdir/$_sysconfdir/init.d/frr
}
9 changes: 4 additions & 5 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.18 as alpine-builder
FROM alpine:3.19 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.18 as source-builder
FROM alpine:3.19 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 All @@ -33,8 +33,7 @@ RUN source /src/alpine/APKBUILD.in \
&& apk add \
--no-cache \
--update-cache \
$makedepends \
&& pip install pytest
$makedepends
COPY . /src
ARG PKGVER
RUN cd /src \
Expand All @@ -58,7 +57,7 @@ RUN cd /dist \
&& abuild -r -P /pkgs/apk

# This stage installs frr from the apk
FROM alpine:3.18
FROM alpine:3.19
RUN mkdir -p /pkgs/apk
COPY --from=alpine-apk-builder /pkgs/apk/ /pkgs/apk/
RUN apk add \
Expand Down
2 changes: 1 addition & 1 deletion docker/alpine/libyang/APKBUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Contributor: Sören Tempel <[email protected]>
# Maintainer: Christian Franke <[email protected]>
pkgname=libyang
pkgver=2.1.80
pkgver=2.1.128
pkgrel=0
pkgdesc="YANG data modelling language parser and toolkit"
url="https://github.com/CESNET/libyang"
Expand Down
193 changes: 0 additions & 193 deletions include/linux/mroute.h

This file was deleted.

Loading

0 comments on commit dfa2776

Please sign in to comment.