build: remove rpm-test stage from Dockerfile
- 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:
20
Dockerfile
20
Dockerfile
@ -111,26 +111,6 @@ RUN fpm -s dir -t rpm \
|
|||||||
var/log/logcorrelator \
|
var/log/logcorrelator \
|
||||||
var/run/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
|
# Development stage - for local testing with hot reload
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user