Skip to content

Commit

Permalink
Fix labels in static hermetic images (#1405)
Browse files Browse the repository at this point in the history
Co-authored-by: Christoph Stäbler <[email protected]>
  • Loading branch information
openshift-cherrypick-robot and creydr authored Jan 27, 2025
1 parent c4b8469 commit e5cd862
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
ARG JAVA_BUILDER=registry.access.redhat.com/ubi8/openjdk-21
ARG JAVA_RUNTIME=registry.access.redhat.com/ubi8/openjdk-21-runtime
ARG DEPS_IMAGE
ARG VERSION=""

FROM $DEPS_IMAGE AS deps

Expand All @@ -36,13 +35,15 @@ RUN mvn -Dmaven.repo.local=/third_party/maven --offline package -pl=dispatcher-l
RUN mkdir /app && cp /build/dispatcher-loom/target/dispatcher-loom-1.0-SNAPSHOT.jar /app/app.jar

FROM $JAVA_RUNTIME AS running
ARG VERSION=""

USER 185

LABEL \
com.redhat.component="openshift-serverless-1-eventing-kafka-broker-dispatcher-rhel8-container" \
name="openshift-serverless-1/eventing-kafka-broker-dispatcher-rhel8" \
version=$VERSION \
release=$VERSION \
summary="Red Hat OpenShift Serverless 1 Eventing Kafka Broker Dispatcher" \
maintainer="[email protected]" \
description="Red Hat OpenShift Serverless 1 Eventing Kafka Broker Dispatcher" \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
ARG JAVA_BUILDER=registry.access.redhat.com/ubi8/openjdk-21
ARG JAVA_RUNTIME=registry.access.redhat.com/ubi8/openjdk-21-runtime
ARG DEPS_IMAGE
ARG VERSION=""

FROM $DEPS_IMAGE AS deps

Expand All @@ -36,13 +35,15 @@ RUN mvn -Dmaven.repo.local=/third_party/maven --offline package -pl=receiver-loo
RUN mkdir /app && cp /build/receiver-loom/target/receiver-loom-1.0-SNAPSHOT.jar /app/app.jar

FROM $JAVA_RUNTIME AS running
ARG VERSION=""

USER 185

LABEL \
com.redhat.component="openshift-serverless-1-eventing-kafka-broker-receiver-rhel8-container" \
name="openshift-serverless-1/eventing-kafka-broker-receiver-rhel8" \
version=$VERSION \
release=$VERSION \
summary="Red Hat OpenShift Serverless 1 Eventing Kafka Broker Receiver" \
maintainer="[email protected]" \
description="Red Hat OpenShift Serverless 1 Eventing Kafka Broker Receiver" \
Expand Down

0 comments on commit e5cd862

Please sign in to comment.