-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathContainerfile.loki
More file actions
33 lines (25 loc) · 1.37 KB
/
Containerfile.loki
File metadata and controls
33 lines (25 loc) · 1.37 KB
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 quay.io/redhat-services-prod/openshift/boilerplate:image-v8.0.0 as builder
WORKDIR /go/src/github.com/grafana/loki
COPY loki/ .
RUN touch loki-build-image/.uptodate && mkdir /build
RUN make clean && make BUILD_IN_CONTAINER=false loki
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
ARG VERSION
LABEL org.label-schema.vendor="Red Hat" \
vendor="Red Hat, Inc." \
com.redhat.component="rhobs-loki" \
name="loki" \
maintainer="team-monitoring@redhat.com" \
version="$VERSION" \
release="$VERSION" \
description="Loki is a horizontally-scalable, highly-available, multi-tenant log aggregation system inspired by Prometheus. It is designed to be very cost effective and easy to operate." \
io.k8s.description="Loki is a horizontally-scalable, highly-available, multi-tenant log aggregation system inspired by Prometheus. It is designed to be very cost effective and easy to operate." \
summary="Log aggregation system" \
url="https://github.com/rhobs/rhobs-konflux-loki" \
distribution-scope="restricted"
COPY --from=builder /go/src/github.com/grafana/loki/cmd/loki/loki /usr/bin/loki
COPY --from=builder /go/src/github.com/grafana/loki/cmd/loki/loki-docker-config.yaml /etc/loki/local-config.yaml
COPY --from=builder /go/src/github.com/grafana/loki/LICENSE /licenses/LICENSE
USER nobody
ENTRYPOINT ["/usr/bin/loki"]
CMD ["-config.file=/etc/loki/local-config.yaml"]