Skip to content

Commit

Permalink
Add support for new contract (#60)
Browse files Browse the repository at this point in the history
Adds labels to DockerFile's for the new contract in RHTAP, ~Have not
change the integration test in rhtap yet~, will follow up with a pr for
the .tekton pipelines
  • Loading branch information
JasonPowr authored Sep 25, 2023
1 parent e42f259 commit 389e258
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
7 changes: 7 additions & 0 deletions redhat/overlays/Dockerfile.backfill-redis
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ RUN make backfill-redis

#Install stage
FROM registry.access.redhat.com/ubi9/go-toolset@sha256:52ab391730a63945f61d93e8c913db4cc7a96f200de909cd525e2632055d9fa6

LABEL description="Backfillredis is a job that will go through the TLog and make sure that missing entries are added to the search index."
LABEL io.k8s.description="Backfillredis is a job that will go through the TLog and make sure that missing entries are added to the search index."
LABEL io.k8s.display-name="Backfillredis container image for Red Hat Trusted Signer"
LABEL io.openshift.tags="backfill-redis trusted-signer"
LABEL summary="Provides the backfill-redis binary for a rekor server"

COPY --from=build-env /opt/app-root/src/backfill-redis /usr/local/bin/backfill-redis
WORKDIR /opt/app-root/src/home

Expand Down
7 changes: 7 additions & 0 deletions redhat/overlays/Dockerfile.cli
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ RUN make rekor-cli

#Install stage
FROM registry.access.redhat.com/ubi9/go-toolset@sha256:52ab391730a63945f61d93e8c913db4cc7a96f200de909cd525e2632055d9fa6

LABEL description="Rekor-cli is a command line interface (CLI) tool used to interact with a rekor server."
LABEL io.k8s.description="Rekor-cli is a command line interface (CLI) tool used to interact with a rekor server."
LABEL io.k8s.display-name="Rekor-cli container image for Red Hat Trusted Signer"
LABEL io.openshift.tags="rekor-cli trusted-signer"
LABEL summary="Provides the rekor CLI binary for interacting with a rekor server"

COPY --from=build-env /opt/app-root/src/rekor-cli /usr/local/bin/rekor-cli
WORKDIR /opt/app-root/src/home

Expand Down
6 changes: 6 additions & 0 deletions redhat/patches/0001-dockerfile.patch
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ index 067c238..7d04f0c 100644
# Multi-Stage production build
-FROM golang:1.21.1@sha256:c416ceeec1cdf037b80baef1ccb402c230ab83a9134b34c0902c542eb4539c82 as deploy
+FROM registry.access.redhat.com/ubi9/go-toolset@sha256:52ab391730a63945f61d93e8c913db4cc7a96f200de909cd525e2632055d9fa6 as deploy
+
+LABEL description="Rekor provides an immutable tamper resistant ledger of metadata generated within a software projects supply chain."
+LABEL io.k8s.description="Rekor provides an immutable tamper resistant ledger of metadata generated within a software projects supply chain."
+LABEL io.k8s.display-name="Rekor container image for Red Hat Trusted Signer"
+LABEL io.openshift.tags="rekor trusted-signer"
+LABEL summary="The rekor-server binary provides an immutable, tamper-resistant log."

# Retrieve the binary from the previous stage
COPY --from=builder /opt/app-root/src/rekor-server /usr/local/bin/rekor-server

0 comments on commit 389e258

Please sign in to comment.