refactor: remove obsolete packaging files
- Remove Dockerfile.deb and Dockerfile.rpm (replaced by Dockerfile.package) - Remove build-deb.sh and build-rpm.sh (replaced by fpm in Dockerfile.package) - Remove test Dockerfiles and old test packages - Keep only: deb/, rpm/, systemd/ directories with maintainer scripts Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@ -1,31 +0,0 @@
|
||||
# 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"]
|
||||
@ -1,27 +0,0 @@
|
||||
# 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"]
|
||||
Reference in New Issue
Block a user