Skip to content

Commit

Permalink
Build 7.5.1 again and support ubuntu-22.04 (#8)
Browse files Browse the repository at this point in the history
* Try to build for debian-12 and ubuntu-22.04

* Build on ubuntu succeeds

* Only ubuntu works actually
  • Loading branch information
majst01 authored Aug 3, 2023
1 parent 84930dc commit 209b887
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 48 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
build:
strategy:
matrix:
os: [debian, ubuntu]
os: [ubuntu]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
build:
strategy:
matrix:
os: [debian, ubuntu]
os: [ubuntu]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
31 changes: 9 additions & 22 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,9 @@ FROM ${OS_NAME}:${OS_VERSION} as frr-builder

ARG FRR_TAG
ARG RTR_TAG
ARG LIBYANG_VERSION
ARG LIBYANG_BUILD
ARG LIBYANG_BUILD_ID
ARG LIBYANG_DISTRIBUTION

ENV LIBYANG_URL=https://ci1.netdef.org/browse/LIBYANG-LY1REL-${LIBYANG_BUILD}/artifact/shared/${LIBYANG_DISTRIBUTION}-x86_64-Packages \
LIBYANG_DEV_PKG=libyang-dev_${LIBYANG_VERSION}.${LIBYANG_BUILD_ID}_amd64.deb \
LIBYANG_PKG=libyang1_${LIBYANG_VERSION}.${LIBYANG_BUILD_ID}_amd64.deb \
ENV LIBYANG_URL=https://deb.frrouting.org/frr/libyang1 \
LIBYANG_DEV_PKG=libyang-dev_1.0.176-2_amd64.deb \
LIBYANG_PKG=libyang1_1.0.176-2_amd64.deb \
DEBCONF_NONINTERACTIVE_SEEN=true \
DEBIAN_FRONTEND=noninteractive

Expand All @@ -29,19 +24,8 @@ RUN set -ex \
./${LIBYANG_DEV_PKG} \
./${LIBYANG_PKG} \
fakeroot \
git

RUN set -ex \
&& git clone https://github.com/rtrlib/rtrlib.git \
&& cd rtrlib \
&& git checkout ${RTR_TAG} \
&& echo "yes" | mk-build-deps --install debian/control \
&& dpkg-buildpackage 1>/dev/null \
&& cd - \
&& apt-get install --quiet=2 ./librtr0*.deb ./librtr-dev*.deb
# Package Debian as of:
# http://docs.frrouting.org/projects/dev-guide/en/latest/packaging-debian.html
# Activated build flags can be checked later on with: bash -c 'vtysh -c "show version"'
git \
librtr-dev

WORKDIR /artifacts
RUN set -ex \
Expand All @@ -55,7 +39,10 @@ RUN set -ex \
&& git config --global user.name "metal stack" \
&& git commit -m "Activate cumulus datacenter defaults." debian/rules \
&& ./tools/tarsource.sh -V \
&& dpkg-buildpackage 1>/dev/null
# # FIX for
# dh_install: warning: Cannot find (any matches for) "doc/user/_build/texinfo/*.png" (tried in ., debian/tmp)
&& mkdir -p doc/user/_build/texinfo && touch doc/user/_build/texinfo/fake.png \
&& dpkg-buildpackage -b 1>/dev/null

FROM scratch
WORKDIR /artifacts
Expand Down
15 changes: 3 additions & 12 deletions docker-make.debian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,11 @@ username: metal-stack
registry-host: ghcr.io
default-build-args:
- OS_NAME=debian
- OS_VERSION=10
- OS_VERSION=12
- RTR_TAG=v0.7.0
- LIBYANG_VERSION=1.0.184-5-g6defee4c-1~1
- LIBYANG_BUILD=13
- LIBYANG_BUILD_ID=gbp624fc6
- LIBYANG_DISTRIBUTION=Debian-10
builds:
- name: FRR 7.5.0 for Debian 10
- name: FRR 7.5.1 for Debian 12
tags:
- 7.5.0-debian-10
build-args:
- FRR_TAG=frr-7.5
- name: FRR 7.5.1 for Debian 10
tags:
- 7.5.1-debian-10
- 7.5.1-debian-12
build-args:
- FRR_TAG=frr-7.5.1
15 changes: 3 additions & 12 deletions docker-make.ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,11 @@ username: metal-stack
registry-host: ghcr.io
default-build-args:
- OS_NAME=ubuntu
- OS_VERSION=20.04
- OS_VERSION=22.04
- RTR_TAG=v0.7.0
- LIBYANG_VERSION=1.0.184-5-g6defee4c-1~1
- LIBYANG_BUILD=13
- LIBYANG_BUILD_ID=gbpe4e74c
- LIBYANG_DISTRIBUTION=Ubuntu-20.04
builds:
- name: FRR 7.5.0 for Ubuntu 20.04
- name: FRR 7.5.1 for Ubuntu 22.04
tags:
- 7.5.0-ubuntu-20.04
build-args:
- FRR_TAG=frr-7.5
- name: FRR 7.5.1 for Ubuntu 20.04
tags:
- 7.5.1-ubuntu-20.04
- 7.5.1-ubuntu-22.04
build-args:
- FRR_TAG=frr-7.5.1

0 comments on commit 209b887

Please sign in to comment.