Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions Dockerfile.art
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.redhat.io/rhel9-6-els/rhel:9.6@sha256:e7834be17a5c9c22291c6626c0d35e2cc76c062a946c94ac1d2a95fedf7af503 AS builder
FROM registry.access.redhat.com/ubi9/ubi-minimal AS builder

RUN INSTALL_PKGS=" \
gcc-11.5.0 \
Expand All @@ -9,7 +9,7 @@ RUN INSTALL_PKGS=" \
openssl-devel \
rust-toolset-1.75.0 \
" && \
dnf install -y $INSTALL_PKGS && \
microdnf install -y $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS

COPY . /opt/app-root/src
Expand All @@ -19,33 +19,27 @@ RUN PROTOC=/opt/app-root/src/thirdparty/protoc/protoc-linux-$(arch) make build

RUN cp /opt/app-root/src/target/release/vector /usr/bin

FROM registry.redhat.io/rhel9-6-els/rhel:9.6@sha256:e7834be17a5c9c22291c6626c0d35e2cc76c062a946c94ac1d2a95fedf7af503
FROM registry.access.redhat.com/ubi9/ubi-minimal

COPY --from=builder /usr/bin/vector /usr/bin/
RUN microdnf install -y systemd

WORKDIR /usr/bin
CMD ["/usr/bin/vector"]

ARG VECTOR_URL
ARG VECTOR_COMMIT
LABEL \
com.redhat.component="logging-vector-container" \
cpe="cpe:/a:redhat:logging:6.3::el9" \
description="Vector container for collection of container logs" \
distribution-scope="subscription" \
io.k8s.description="Vector container for collection of container logs" \
io.k8s.display-name="Vector" \
io.openshift.build.commit.id=${VECTOR_COMMIT} \
io.openshift.build.commit.url=${VECTOR_URL}/commit/${VECTOR_COMMIT} \
io.openshift.build.source-location=${VECTOR_URL} \
io.openshift.maintainer.product="OpenShift Container Platform" \
io.openshift.tags="logging,vector,observability" \
license="Apache-2.0" \
maintainer="AOS Logging <team-logging@redhat.com>" \
name="openshift-logging/vector-rhel9" \
release="6.3" \
summary="Log collection agent for Red Hat Openshift Logging" \
url=${VECTOR_URL} \
url="https://catalog.redhat.com/en/software/containers/openshift-logging/vector-rhel9/6447991f84aeefde2c9f2bcf" \
vendor="Red Hat, Inc." \
version_minor="v0.37" \
version="v0.37.1"
version="0.37.1"