-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile.escleaner
33 lines (25 loc) · 1.22 KB
/
Dockerfile.escleaner
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
31
32
33
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_8_golang_1.22@sha256:414352c89e06f25f79b4927328504edcdbfe676cd9596b44afff2eb4117c17e0 as builder
WORKDIR /opt/app-root/src
USER root
COPY .git .git
COPY jaeger jaeger
# this directory is checked by ecosystem-cert-preflight-checks task in Konflux
COPY jaeger/LICENSE /licenses/
WORKDIR /opt/app-root/src/jaeger
RUN go build -C ./cmd/es-index-cleaner -mod=mod -o ./jaeger -trimpath -ldflags "-s -w"
FROM registry.redhat.io/ubi8/ubi-minimal:latest@sha256:cf095e5668919ba1b4ace3888107684ad9d587b1830d3eb56973e6a54f456e67
WORKDIR /
RUN mkdir /licenses
COPY jaeger/LICENSE /licenses/.
COPY --from=builder /opt/app-root/src/jaeger/cmd/es-index-cleaner/jaeger /usr/bin/jaeger
ARG USER_UID=1001
USER ${USER_UID}
ENTRYPOINT ["/usr/bin/jaeger"]
LABEL com.redhat.component="jaeger-es-index-cleaner-container" \
name="rhosdt/jaeger-es-index-cleaner-rhel8" \
summary="Jaeger ES index cleaner" \
description="Index cleaner for the distributed tracing system" \
io.k8s.description="Index cleaner for the distributed tracing system." \
io.openshift.expose-services="" \
io.openshift.tags="tracing" \
io.k8s.display-name="Jaeger ES index cleaner"