Cible: Rocky Linux 9 (compatible RHEL/CentOS)
Changes:
- packaging/Dockerfile.rpm: Build pour Rocky Linux
- packaging/build-rpm.sh: Ajout paramètre distribution (rocky/rhel/centos)
- packaging/rpm/ja4sentinel.spec:
* Condition %if 0%{?rhel} >= 8 pour compatibilité RHEL
* Description mise à jour avec Rocky Linux
- packaging/test/Dockerfile.rpm: Test sur Rocky Linux 9
- packaging/test/test-*.sh: Tests spécifiques Rocky Linux
- .github/workflows/build-rpm.yml:
* Nom du job: 'Build RPM Package (Rocky Linux)'
* TARGET_DIST: rockylinux:9
* Simplification du build via Docker
Documentation:
- README.md: Instructions d'installation pour .rpm (Rocky/RHEL) et .deb (Debian/Ubuntu)
- Remplacement des instructions de build par installation via packages
Compatibilité:
- Rocky Linux 8.x et 9.x
- RHEL 8.x et 9.x
- CentOS Stream 8 et 9
- AlmaLinux 8.x et 9.x
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
30 lines
782 B
Docker
30 lines
782 B
Docker
# Dockerfile for testing RPM package installation on Rocky Linux
|
|
FROM rockylinux:9
|
|
|
|
# Install dependencies (libpcap is in base repo on Rocky 9)
|
|
RUN dnf install -y \
|
|
libpcap \
|
|
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
|
|
RUN dnf install -y /tmp/ja4sentinel.rpm
|
|
|
|
# Verify installation
|
|
RUN echo "=== Verifying installation ===" && \
|
|
which 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"]
|