forked from grafana/loki
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathDockerfile.promtail.ocp
More file actions
17 lines (15 loc) · 912 Bytes
/
Dockerfile.promtail.ocp
File metadata and controls
17 lines (15 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.21-openshift-4.16 AS builder
WORKDIR /go/src/github.com/grafana/loki
COPY . .
RUN touch loki-build-image/.uptodate && mkdir /build
RUN make clean && make BUILD_IN_CONTAINER=false promtail
FROM registry.ci.openshift.org/ocp/4.16:base-rhel9
LABEL io.k8s.display-name="OpenShift Loki Promtail" \
io.k8s.description="An agent responsible for gathering logs and sending them to Loki." \
io.openshift.tags="grafana,prometheus,monitoring" \
maintainer="OpenShift Development <dev@lists.openshift.redhat.com>" \
version="v3.0.0"
COPY --from=builder /go/src/github.com/grafana/loki/clients/cmd/promtail/promtail /usr/bin/promtail
COPY --from=builder /go/src/github.com/grafana/loki/clients/cmd/promtail/promtail-docker-config.yaml /etc/promtail/config.yml
ENTRYPOINT ["/usr/bin/promtail"]
CMD ["-config.file=/etc/promtail/config.yml"]