refactor: update packaging test scripts to use Docker directly
Some checks failed
Build DEB Package / Build DEB Package (Debian/Ubuntu) (push) Has been cancelled
Build RPM Package / Build RPM Package (Rocky Linux) (push) Has been cancelled

- 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:
Jacquin Antoine
2026-02-27 16:18:15 +01:00
parent 9c91884b7f
commit 27eaa8aa4c
4 changed files with 10 additions and 254 deletions

View File

@ -20,22 +20,13 @@ fi
echo "Found package: ${RPM_PACKAGE}"
# Copy package to test directory
cp "${RPM_PACKAGE}" "${SCRIPT_DIR}/"
# Build test image
echo "Building test Docker image..."
docker build -t ja4sentinel-test-rpm \
-f "${SCRIPT_DIR}/Dockerfile.rpm" \
"${SCRIPT_DIR}/"
# Run tests
# Test installation directly in Rocky Linux container
echo ""
echo "Running installation tests..."
echo "Running installation tests in Rocky Linux container..."
docker run --rm \
-v "${SCRIPT_DIR}/test-install-rpm.sh:/test-install.sh:ro" \
ja4sentinel-test-rpm \
/test-install.sh
-v "${BUILD_DIR}:/packages:ro" \
rockylinux:8 \
sh -c "dnf install -y /packages/*.rpm && echo 'RPM installation successful'"
echo ""
echo "=========================================="