refactor: update packaging test scripts to use Docker directly
- Remove dependency on Dockerfile.deb and Dockerfile.rpm - Use debian:latest and rockylinux:8 containers directly - Simplify test scripts by removing intermediate image builds - Remove obsolete test-install-deb.sh and test-install-rpm.sh Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@ -20,22 +20,13 @@ fi
|
||||
|
||||
echo "Found package: ${DEB_PACKAGE}"
|
||||
|
||||
# Copy package to test directory
|
||||
cp "${DEB_PACKAGE}" "${SCRIPT_DIR}/"
|
||||
|
||||
# Build test image
|
||||
echo "Building test Docker image..."
|
||||
docker build -t ja4sentinel-test-deb \
|
||||
-f "${SCRIPT_DIR}/Dockerfile.deb" \
|
||||
"${SCRIPT_DIR}/"
|
||||
|
||||
# Run tests
|
||||
# Test installation directly in Debian container
|
||||
echo ""
|
||||
echo "Running installation tests..."
|
||||
echo "Running installation tests in Debian container..."
|
||||
docker run --rm \
|
||||
-v "${SCRIPT_DIR}/test-install-deb.sh:/test-install.sh:ro" \
|
||||
ja4sentinel-test-deb \
|
||||
/test-install.sh
|
||||
-v "${BUILD_DIR}:/packages:ro" \
|
||||
debian:latest \
|
||||
sh -c "apt-get update && apt-get install -y /packages/*.deb && echo 'DEB installation successful'"
|
||||
|
||||
echo ""
|
||||
echo "=========================================="
|
||||
|
||||
Reference in New Issue
Block a user