Skip to content

Commit

Permalink
build: refactor the CI
Browse files Browse the repository at this point in the history
Use Docker custom docker containers to build and test bpfilter, those
containers are stored into the repo's registery and used during
subsequent CI run as cache to speed up the CI.
  • Loading branch information
qdeslandes committed Jan 30, 2025
1 parent 8433a67 commit 6c34b95
Show file tree
Hide file tree
Showing 8 changed files with 319 additions and 170 deletions.
27 changes: 27 additions & 0 deletions .github/fedora-39.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM fedora:39

RUN dnf --disablerepo=* --enablerepo=fedora,updates --nodocs --setopt install_weak_deps=False -y install \
bison \
bpftool \
clang-tools-extra \
cmake \
flex \
libcmocka-devel \
doxygen \
gcc-c++ \
git \
jq \
lcov \
libasan \
libbpf-devel \
libnl3-devel \
libubsan \
python3-breathe \
python3-furo \
python3-linuxdoc \
python3-scapy \
python3-sphinx \
pkgconf \
google-benchmark-devel \
libgit2-devel && \
dnf clean all -y
27 changes: 27 additions & 0 deletions .github/fedora-40.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM fedora:40

RUN dnf --disablerepo=* --enablerepo=fedora,updates --nodocs --setopt install_weak_deps=False -y install \
bison \
bpftool \
clang-tools-extra \
cmake \
flex \
libcmocka-devel \
doxygen \
gcc-c++ \
git \
jq \
lcov \
libasan \
libbpf-devel \
libnl3-devel \
libubsan \
python3-breathe \
python3-furo \
python3-linuxdoc \
python3-scapy \
python3-sphinx \
pkgconf \
google-benchmark-devel \
libgit2-devel && \
dnf clean all -y
29 changes: 29 additions & 0 deletions .github/fedora-41.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM fedora:41

RUN dnf --disablerepo=* --enablerepo=fedora,updates --nodocs --setopt install_weak_deps=False -y install \
bison \
bpftool \
clang-tools-extra \
cmake \
flex \
libcmocka-devel \
doxygen \
gcc-c++ \
git \
jq \
lcov \
libasan \
libbpf-devel \
libnl3-devel \
libubsan \
python3-breathe \
python3-dateutil \
python3-furo \
python3-GitPython \
python3-linuxdoc \
python3-scapy \
python3-sphinx \
pkgconf \
google-benchmark-devel \
libgit2-devel && \
dnf clean all -y
33 changes: 33 additions & 0 deletions .github/ubuntu-24.04.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
FROM ubuntu:24.04

RUN apt-get update && \
apt-get install --no-install-recommends -y \
bison \
linux-tools-common \
clang-tidy \
clang-format \
cmake \
doxygen \
flex \
g++ \
gcc \
git \
jq \
lcov \
libasan8 \
libbpf-dev \
libcmocka-dev \
libnl-3-dev \
libubsan1 \
make \
pkgconf \
python3-breathe \
python3-scapy \
furo \
python3-pip \
python3-sphinx \
libbenchmark-dev \
libgit2-dev && \
rm -rf /var/lib/apt/lists/*

RUN pip install --break-system-packages linuxdoc
35 changes: 35 additions & 0 deletions .github/ubuntu-24.10.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
FROM ubuntu:24.10

RUN apt-get update && \
apt-get install --no-install-recommends -y \
bison \
linux-tools-common \
clang \
clang-tidy \
clang-format \
cmake \
doxygen \
flex \
g++ \
gcc \
git \
jq \
lcov \
libasan8 \
libbpf-dev \
libcmocka-dev \
libnl-3-dev \
libubsan1 \
make \
pkgconf \
python3-breathe \
python3-setuptools \
python3-scapy \
furo \
python3-pip \
python3-sphinx \
libbenchmark-dev \
libgit2-dev && \
rm -rf /var/lib/apt/lists/*

RUN pip install --break-system-packages linuxdoc
Loading

0 comments on commit 6c34b95

Please sign in to comment.