- Ajout des cibles make ci, ci-test, ci-build, ci-package, ci-package-test - Correction des chemins de sortie des packages (build/deb, build/rpm) - Build RPM sur Rocky Linux 9 pour dépendances correctes (libpcap.so.1) - Fix tests RPM (command -v au lieu de which, fallback libpcap) - Tous les tests passent (11/11 DEB, 11/11 RPM) Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
28 lines
1001 B
Docker
28 lines
1001 B
Docker
# Dockerfile for testing RPM package installation on Rocky Linux
|
|
FROM rockylinux:9
|
|
|
|
# Install systemd only (libpcap will be installed as dependency of ja4sentinel)
|
|
RUN dnf install -y systemd && dnf clean all
|
|
|
|
# Create systemd directory (needed for service installation)
|
|
RUN mkdir -p /etc/systemd/system
|
|
|
|
# Copy RPM package
|
|
COPY *.rpm /tmp/ja4sentinel.rpm
|
|
|
|
# Install the package (libpcap dependency should be pulled automatically)
|
|
# If it fails, install libpcap first and retry
|
|
RUN dnf install -y /tmp/ja4sentinel.rpm || (echo "First attempt failed, installing libpcap..." && dnf install -y libpcap && dnf install -y /tmp/ja4sentinel.rpm)
|
|
|
|
# Verify installation
|
|
RUN echo "=== Verifying installation ===" && \
|
|
command -v ja4sentinel && \
|
|
ja4sentinel --version && \
|
|
ls -la /etc/ja4sentinel/ && \
|
|
ls -la /var/lib/ja4sentinel/ && \
|
|
ls -la /usr/lib/systemd/system/ja4sentinel.service && \
|
|
echo "=== Installation successful ==="
|
|
|
|
# Default command: run tests
|
|
CMD ["/test-install.sh"]
|