Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/tools/stream-generator/Dockerfile

23 lines
626 B

ARG GO_VERSION=1.25
# Go build stage
FROM golang:${GO_VERSION} AS build
COPY . /src/loki
WORKDIR /src/loki
RUN CGO_ENABLED=0 go build -o stream-generator ./tools/stream-generator/main.go
# Final stage
FROM gcr.io/distroless/static:debug
COPY --from=build /src/loki/stream-generator /usr/bin/stream-generator
SHELL [ "/busybox/sh", "-c" ]
RUN addgroup -g 10001 -S streamgenerator && \
adduser -u 10001 -S streamgenerator -G streamgenerator && \
chown -R streamgenerator:streamgenerator /usr/bin/stream-generator && \
ln -s /busybox/sh /bin/sh
USER 10001
EXPOSE 9090
ENTRYPOINT [ "/usr/bin/stream-generator" ]