From a246374ef168f71d67f7eb995d7093841c8af4ef Mon Sep 17 00:00:00 2001 From: Pramod Bindal Date: Thu, 10 Oct 2024 16:55:29 +0530 Subject: [PATCH] Add Dockerfile for konflux adoption --- openshift/dockerfiles/cache.Dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 openshift/dockerfiles/cache.Dockerfile diff --git a/openshift/dockerfiles/cache.Dockerfile b/openshift/dockerfiles/cache.Dockerfile new file mode 100644 index 000000000..64c37dee8 --- /dev/null +++ b/openshift/dockerfiles/cache.Dockerfile @@ -0,0 +1,25 @@ +ARG GO_BUILDER=brew.registry.redhat.io/rh-osbs/openshift-golang-builder:v1.22 +ARG RUNTIME=registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:c0e70387664f30cd9cf2795b547e4a9a51002c44a4a86aa9335ab030134bf392 + +FROM $GO_BUILDER AS builder + +WORKDIR /go/src/github.com/openshift-pipelines/tekton-caches +COPY . . + +RUN go build -v -o /tmp/cache ./cmd/cache + +FROM $RUNTIME +ARG VERSION=tekton-caches-main + +COPY --from=builder /tmp/cache /ko-app/cache +LABEL \ + com.redhat.component="openshift-pipelines-tekton-caches" \ + name="openshift-pipelines/pipelines-tekton-caches-rhel8" \ + version=$VERSION \ + summary="Red Hat OpenShift Pipelines Tekton Caches" \ + maintainer="pipelines-extcomm@redhat.com" \ + description="Red Hat OpenShift Pipelines Tekton Caches" \ + io.k8s.display-name="Red Hat OpenShift Pipelines Tekton Caches" \ + io.k8s.description="Red Hat OpenShift Pipelines Tekton Caches" \ + io.openshift.tags="pipelines,tekton,openshift,tekton-caches" +