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 <qwen-coder@alibabacloud.com>
This commit is contained in:
Jacquin Antoine
2026-02-27 16:17:46 +01:00
parent d098211752
commit 2fc3f92cf8

View File

@ -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: