From ab537cb672053d0f66ad3de48bbd79abaa4ff3ad Mon Sep 17 00:00:00 2001 From: Ashwin Das Date: Wed, 17 Dec 2025 22:38:11 +0530 Subject: [PATCH 1/4] create Dockerfile.art --- Dockerfile.art | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Dockerfile.art diff --git a/Dockerfile.art b/Dockerfile.art new file mode 100644 index 00000000..9e7e93b4 --- /dev/null +++ b/Dockerfile.art @@ -0,0 +1,42 @@ +FROM golang:1.23 AS builder + +ENV GOEXPERIMENT=strictfipsruntime +ENV CGO_ENABLED=1 +ENV GOOS=linux +ENV GOFLAGS="-p=4" + +ENV BUILD_VERSION=0.1.0 +ENV OS_GIT_MAJOR=0 +ENV OS_GIT_MINOR=1 +ENV OS_GIT_PATCH=0 + +COPY ./lokistack-gateway /opt/app-root/src/lokistack-gateway +WORKDIR /opt/app-root/src/lokistack-gateway + +RUN go build -tags strictfipsruntime -a -ldflags '-s -w' -o lokistack-gateway . + +FROM registry.access.redhat.com/ubi9/ubi-minimal + +COPY --from=builder /opt/app-root/src/lokistack-gateway/lokistack-gateway /usr/bin/lokistack-gateway + +EXPOSE 80 +ENTRYPOINT ["/usr/bin/lokistack-gateway"] + +ARG LOKISTACK_GATEWAY_COMMIT +ARG LOKISTACK_GATEWAY_URL +LABEL com.redhat.component="lokistack-gateway-container" \ + cpe="cpe:/a:redhat:logging:6.3::el9" \ + description="Horizontally-scalable authn/authz-securing reverse proxy for Loki." \ + distribution-scope="subscription" \ + io.k8s.description="Horizontally-scalable authn/authz-securing reverse proxy for Loki." \ + io.k8s.display-name="OpenShift Lokistack Gateway" \ + io.openshift.maintainer.component="Logging" \ + io.openshift.maintainer.product="OpenShift Container Platform" \ + io.openshift.tags="openshift,logging,loki" \ + maintainer="AOS Logging " \ + name="openshift-logging/lokistack-gateway-rhel9" \ + release="6.3" \ + summary="Horizontally-scalable authn/authz-securing reverse proxy for Loki." \ + vendor="Red Hat, Inc." \ + version_minor="v0.1" \ + version=v0.1.0 From 35901ded86966d390f57e86b587d48d37f8446c1 Mon Sep 17 00:00:00 2001 From: Ashwin Das Date: Thu, 18 Dec 2025 09:53:39 +0530 Subject: [PATCH 2/4] review fixes --- Dockerfile.art | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Dockerfile.art b/Dockerfile.art index 9e7e93b4..d989e8ee 100644 --- a/Dockerfile.art +++ b/Dockerfile.art @@ -1,16 +1,11 @@ -FROM golang:1.23 AS builder +FROM golang:1.24 AS builder ENV GOEXPERIMENT=strictfipsruntime ENV CGO_ENABLED=1 ENV GOOS=linux ENV GOFLAGS="-p=4" -ENV BUILD_VERSION=0.1.0 -ENV OS_GIT_MAJOR=0 -ENV OS_GIT_MINOR=1 -ENV OS_GIT_PATCH=0 - -COPY ./lokistack-gateway /opt/app-root/src/lokistack-gateway +COPY . /opt/app-root/src/lokistack-gateway WORKDIR /opt/app-root/src/lokistack-gateway RUN go build -tags strictfipsruntime -a -ldflags '-s -w' -o lokistack-gateway . From 5c16dddcb1ae006a27569ee9dab1cc443a1e5b1f Mon Sep 17 00:00:00 2001 From: Ashwin Das Date: Fri, 19 Dec 2025 15:28:23 +0530 Subject: [PATCH 3/4] remove major minor from labels --- Dockerfile.art | 2 -- 1 file changed, 2 deletions(-) diff --git a/Dockerfile.art b/Dockerfile.art index d989e8ee..6741cc7a 100644 --- a/Dockerfile.art +++ b/Dockerfile.art @@ -20,7 +20,6 @@ ENTRYPOINT ["/usr/bin/lokistack-gateway"] ARG LOKISTACK_GATEWAY_COMMIT ARG LOKISTACK_GATEWAY_URL LABEL com.redhat.component="lokistack-gateway-container" \ - cpe="cpe:/a:redhat:logging:6.3::el9" \ description="Horizontally-scalable authn/authz-securing reverse proxy for Loki." \ distribution-scope="subscription" \ io.k8s.description="Horizontally-scalable authn/authz-securing reverse proxy for Loki." \ @@ -30,7 +29,6 @@ LABEL com.redhat.component="lokistack-gateway-container" \ io.openshift.tags="openshift,logging,loki" \ maintainer="AOS Logging " \ name="openshift-logging/lokistack-gateway-rhel9" \ - release="6.3" \ summary="Horizontally-scalable authn/authz-securing reverse proxy for Loki." \ vendor="Red Hat, Inc." \ version_minor="v0.1" \ From 943745b3107839b02838c53c06c2f3241f9b4337 Mon Sep 17 00:00:00 2001 From: Ashwin Das Date: Fri, 19 Dec 2025 15:37:36 +0530 Subject: [PATCH 4/4] remove GOEXPERIMENT --- Dockerfile.art | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile.art b/Dockerfile.art index 6741cc7a..e86ca1a2 100644 --- a/Dockerfile.art +++ b/Dockerfile.art @@ -1,6 +1,5 @@ FROM golang:1.24 AS builder -ENV GOEXPERIMENT=strictfipsruntime ENV CGO_ENABLED=1 ENV GOOS=linux ENV GOFLAGS="-p=4"