From 2fc3f92cf8ced8eda2d1b0c1f249a4b7b088de70 Mon Sep 17 00:00:00 2001 From: Jacquin Antoine Date: Fri, 27 Feb 2026 16:17:46 +0100 Subject: [PATCH] docs: update README with new Docker-based packaging - Update installation section to use Docker-based packaging - Replace rpmbuild and debhelper commands with make package-* targets - Document new unified packaging workflow with fpm Co-authored-by: Qwen-Coder --- README.md | 36 +++++++++++++----------------------- 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 8a2fe74..d32ecb2 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,19 @@ Apache HTTPD 2.4 module for logging all incoming HTTP requests as JSON lines to ## Installation +### Using Docker (recommended) + +```bash +# Build DEB and RPM packages +make package-deb # Creates dist/deb/libapache2-mod-reqin-log_*.deb +make package-rpm # Creates dist/rpm/mod_reqin_log-*.rpm +make package # Build both packages + +# Test package installation +make test-package-deb # Test DEB in Docker container +make test-package-rpm # Test RPM in Docker container +``` + ### Build from Source ```bash @@ -34,29 +47,6 @@ make sudo make install ``` -### Using Package Manager - -#### RPM (Rocky Linux 8+) - -```bash -# Build RPM package -rpmbuild -ba packaging/rpm/mod_reqin_log.spec - -# Install the package -sudo rpm -ivh ~/rpmbuild/RPMS/x86_64/mod_reqin_log-1.0.0-1.el8.x86_64.rpm -``` - -#### DEB (Debian/Ubuntu) - -```bash -# Build DEB package -cd packaging/deb -debuild -us -uc - -# Install the package -sudo dpkg -i ../libapache2-mod-reqin-log_1.0.0_amd64.deb -``` - ## Configuration Load the module and configure in your Apache configuration: