build: remove rpm-test stage from Dockerfile
Some checks failed
Build and Test / test (push) Has been cancelled
Build and Test / build (push) Has been cancelled
Build and Test / docker (push) Has been cancelled

- Remove unused rpm-test stage (rockylinux:8 + systemd)
- Reduces build time by ~1 minute
- Reduces build image size
- RPM testing still available via make test-package-rpm

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
Jacquin Antoine
2026-03-02 22:56:39 +01:00
parent 7f2becf702
commit ac357c19ea

View File

@ -111,26 +111,6 @@ RUN fpm -s dir -t rpm \
var/log/logcorrelator \
var/run/logcorrelator
# =============================================================================
# Test stage - verify RPM on Rocky Linux
# =============================================================================
FROM rockylinux:8 AS rpm-test
# Install systemd (for testing service unit)
RUN dnf install -y systemd && \
dnf clean all
# Copy RPM from rpm-builder
COPY --from=rpm-builder /tmp/logcorrelator-*.rpm /tmp/
# Install the RPM
RUN rpm -ivh /tmp/logcorrelator-*.rpm || true
# Verify installation
RUN ls -la /usr/bin/logcorrelator && \
ls -la /etc/logcorrelator/ && \
ls -la /etc/systemd/system/logcorrelator.service
# =============================================================================
# Development stage - for local testing with hot reload
# =============================================================================