- Use two separate //go:generate directives (Ja4Tc for tc_capture.c, Ja4Ssl
for uprobe_ssl.c) to avoid duplicate LICENSE symbol and multi-file clang issue
- Update loader.go to hold tcObjs/sslObjs separately with correct field names:
UprobeSslSetFd, UprobeSslReadEntry, UretprobeSslReadExit,
KprobeAccept4Entry, KretprobeAccept4Exit
- Add systemd-rpm-macros to all three RPM build stages (el8/el9/el10)
so that %{_unitdir} macro resolves correctly
- RPMs now build successfully for el8, el9, el10
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
44 lines
1.1 KiB
Docker
44 lines
1.1 KiB
Docker
# Dockerfile for running unit tests (monorepo root build context)
|
|
FROM rockylinux:8
|
|
|
|
# Install build and test dependencies
|
|
RUN dnf install -y epel-release && \
|
|
dnf install -y \
|
|
gcc \
|
|
make \
|
|
httpd \
|
|
httpd-devel \
|
|
apr-devel \
|
|
apr-util-devel \
|
|
cmake \
|
|
python3 \
|
|
curl \
|
|
git \
|
|
pkgconfig \
|
|
libxml2-devel \
|
|
&& dnf clean all
|
|
|
|
# Build and install cmocka from source
|
|
RUN cd /tmp && \
|
|
git clone https://git.cryptomilk.org/projects/cmocka.git && \
|
|
cd cmocka && \
|
|
git checkout cmocka-1.1.5 && \
|
|
mkdir build && cd build && \
|
|
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release && \
|
|
make && \
|
|
make install && \
|
|
ldconfig && \
|
|
cd / && \
|
|
rm -rf /tmp/cmocka
|
|
|
|
WORKDIR /build
|
|
|
|
COPY services/mod-reqin-log/src/ src/
|
|
COPY services/mod-reqin-log/tests/ tests/
|
|
COPY services/mod-reqin-log/CMakeLists.txt CMakeLists.txt
|
|
COPY services/mod-reqin-log/Makefile Makefile
|
|
|
|
RUN mkdir -p build/tests && cd build/tests && cmake ../../ && make
|
|
|
|
CMD ["ctest", "--test-dir", "build/tests", "--output-on-failure"]
|