ci: migrate to GitLab CI with multi-distribution RPM builds
- 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>
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
#!/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
|
||||
@ -8,7 +10,10 @@ set -e
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
IMAGE_NAME="mod_reqin_log-build"
|
||||
|
||||
echo "Building Docker image..."
|
||||
echo "Building mod_reqin_log in Docker..."
|
||||
echo ""
|
||||
|
||||
# Build the image (uses Dockerfile, not Dockerfile.package)
|
||||
docker build -t "$IMAGE_NAME" "$SCRIPT_DIR/.."
|
||||
|
||||
echo ""
|
||||
@ -18,10 +23,11 @@ echo "Build complete. Extracting module..."
|
||||
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/
|
||||
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 mod_reqin_log-build httpd -t -C 'LoadModule reqin_log_module /modules/mod_reqin_log.so'"
|
||||
echo " docker run --rm -v \$PWD/dist:/modules $IMAGE_NAME httpd -t -C 'LoadModule reqin_log_module /modules/mod_reqin_log.so'"
|
||||
|
||||
Reference in New Issue
Block a user