Cible: Debian Bookworm (12) et Ubuntu 22.04+ Changes: - packaging/Dockerfile.deb: Build via Docker avec Go 1.24 - packaging/build-deb.sh: Ajout paramètre distribution (debian/ubuntu) - packaging/test/Dockerfile.deb: Test sur Debian Bookworm - packaging/test/test-*.sh: Tests spécifiques Debian/Ubuntu - .github/workflows/build-deb.yml: * Nom du job: 'Build DEB Package (Debian/Ubuntu)' * TARGET_DIST: debian:bookworm * Build simplifié via Docker - Makefile: package-deb utilise Docker (cohérent avec RPM) Compatibilité: - Debian 11 (Bullseye) - Debian 12 (Bookworm) - Ubuntu 20.04 LTS - Ubuntu 22.04 LTS - Ubuntu 24.04 LTS Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
32 lines
848 B
Docker
32 lines
848 B
Docker
# Dockerfile for testing DEB package installation on Debian/Ubuntu
|
|
FROM debian:bookworm-slim
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
# Install dependencies
|
|
RUN apt-get update && apt-get install -y \
|
|
libpcap0.8 \
|
|
systemd \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Create systemd directory (needed for service installation)
|
|
RUN mkdir -p /etc/systemd/system
|
|
|
|
# Copy DEB package
|
|
COPY *.deb /tmp/ja4sentinel.deb
|
|
|
|
# Install the package
|
|
RUN dpkg -i /tmp/ja4sentinel.deb || apt-get install -f -y
|
|
|
|
# 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"]
|