From 438440c3ce2890ea6506f30b44b2e25cd3509186 Mon Sep 17 00:00:00 2001 From: Yatin Karel Date: Tue, 1 Sep 2026 17:15:02 +0530 Subject: [PATCH] Add frr container image Required for BGP/EVPN Resolves: #OSPRH-35399 Assisted-By: Claude Signed-off-by: Yatin Karel --- containers/frr/OWNERS | 12 ++++++++++++ containers/frr/frr/Containerfile | 19 +++++++++++++++++++ containers/frr/frr/bindeps.txt | 2 ++ containers/frr/rpms.in.yaml | 12 ++++++++++++ 4 files changed, 45 insertions(+) create mode 100644 containers/frr/OWNERS create mode 100644 containers/frr/frr/Containerfile create mode 100644 containers/frr/frr/bindeps.txt create mode 100644 containers/frr/rpms.in.yaml diff --git a/containers/frr/OWNERS b/containers/frr/OWNERS new file mode 100644 index 00000000..c4c45fe9 --- /dev/null +++ b/containers/frr/OWNERS @@ -0,0 +1,12 @@ +# See the OWNERS docs at https://www.kubernetes.dev/docs/guide/owners/ +approvers: + - averdagu + - eduolivares + - karelyatin + - slawqo + +reviewers: + - averdagu + - eduolivares + - karelyatin + - slawqo diff --git a/containers/frr/frr/Containerfile b/containers/frr/frr/Containerfile new file mode 100644 index 00000000..eabdb885 --- /dev/null +++ b/containers/frr/frr/Containerfile @@ -0,0 +1,19 @@ +ARG BASE_IMAGE=localhost/openstack/openstack-base:latest + +# RPM-only image: no Python source is built, package comes from the +# distro repos already enabled in the base image's rpms.repo. +FROM ${BASE_IMAGE} + +LABEL summary="FRR (FRRouting)" \ + io.k8s.description="FRR dynamic routing suite (bgpd/zebra/staticd/watchfrr) with kolla interface" + +RUN uid_gid_manage frrvty frr + +COPY frr/bindeps.txt /tmp/bindeps.txt +RUN pkgs=$(cat /tmp/bindeps.txt | grep -v '^#' | grep -v '^$' | tr '\n' ' ') && \ + if [ -n "${pkgs}" ]; then microdnf -y install ${pkgs} && microdnf clean all && rm -rf /var/cache/dnf; fi && \ + rm /tmp/bindeps.txt + +RUN mkdir -p /var/lock/subsys && chown frr: /var/lock/subsys + +USER frr diff --git a/containers/frr/frr/bindeps.txt b/containers/frr/frr/bindeps.txt new file mode 100644 index 00000000..18591dc7 --- /dev/null +++ b/containers/frr/frr/bindeps.txt @@ -0,0 +1,2 @@ +# FRR dynamic routing suite (bgpd, zebra, staticd, watchfrr, etc.) +frr diff --git a/containers/frr/rpms.in.yaml b/containers/frr/rpms.in.yaml new file mode 100644 index 00000000..5b9eba07 --- /dev/null +++ b/containers/frr/rpms.in.yaml @@ -0,0 +1,12 @@ +contentOrigin: + repofiles: + - ./rpms.repo +context: + bare: true + +arches: + - x86_64 + - aarch64 + +packages: + - frr