- Replace GitHub Actions with GitLab CI using Docker-in-Docker - Build 3 RPMs (el7, el8, el9) + 1 DEB from Dockerfile.package - Add verify jobs for each target distribution - Remove obsolete files: - Dockerfile, Dockerfile.test-socket (replaced by Dockerfile.package) - scripts/socket_consumer.py, scripts/socket_listener.py - scripts/test_unix_socket.sh, scripts/run_integration_tests.sh - Update README.md with new package targets - Update architecture.yml for GitLab CI workflow Breaks: Single RPM no longer supported (glibc incompatibility) Replaced by: Distribution-specific RPMs (el7, el8, el9) Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
34 lines
926 B
Bash
Executable File
34 lines
926 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# build.sh - Build mod_reqin_log in Docker
|
|
# Builds the module for the current platform only.
|
|
# For multi-platform packages, use: make package
|
|
#
|
|
|
|
set -e
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
IMAGE_NAME="mod_reqin_log-build"
|
|
|
|
echo "Building mod_reqin_log in Docker..."
|
|
echo ""
|
|
|
|
# Build the image (uses Dockerfile, not Dockerfile.package)
|
|
docker build -t "$IMAGE_NAME" "$SCRIPT_DIR/.."
|
|
|
|
echo ""
|
|
echo "Build complete. Extracting module..."
|
|
|
|
# Create dist directory
|
|
mkdir -p "$SCRIPT_DIR/../dist"
|
|
|
|
# Extract the built module from container
|
|
docker run --rm -v "$SCRIPT_DIR/../dist:/output" "$IMAGE_NAME" \
|
|
cp /build/modules/mod_reqin_log.so /output/
|
|
|
|
echo ""
|
|
echo "Module built successfully: $SCRIPT_DIR/../dist/mod_reqin_log.so"
|
|
echo ""
|
|
echo "To test the module:"
|
|
echo " docker run --rm -v \$PWD/dist:/modules $IMAGE_NAME httpd -t -C 'LoadModule reqin_log_module /modules/mod_reqin_log.so'"
|