forked from sigstore/rekor
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile.backfill-redis.rh
30 lines (22 loc) · 1.33 KB
/
Dockerfile.backfill-redis.rh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Build stage
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.23@sha256:6a4a05d24acecde63d9c7c8c986ad9e5e20da2c2ce30312b328ed771736e7a1f AS build-env
USER root
RUN mkdir /opt/app-root && mkdir /opt/app-root/src && git config --global --add safe.directory /opt/app-root/src
WORKDIR /opt/app-root/src/
COPY . .
RUN CGO_ENABLED=0 go mod download
ARG SERVER_LDFLAGS
RUN CGO_ENABLED=0 go build -mod=readonly -trimpath -ldflags "$(SERVER_LDFLAGS)" -o backfill-redis ./cmd/backfill-index
# Install stage
FROM registry.redhat.io/rhel9/redis-6@sha256:fc72e978a899b6df2e6c4c2aa399fa7b5b5255e38463b21ea1323c74dda9030b
COPY --from=build-env /opt/app-root/src/backfill-redis /usr/local/bin/backfill-redis
WORKDIR /opt/app-root/src/home
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"
LABEL com.redhat.component="backfill-redis"
LABEL name="backfill-redis"
#ENTRYPOINT
ENTRYPOINT [ "backfill-redis" ]