-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add-possibility-to-hide-useless-rows
- Loading branch information
Showing
376 changed files
with
96,929 additions
and
5,480 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
FROM golang:1.22.5 as build | ||
ARG GO_VERSION=1.22 | ||
FROM golang:${GO_VERSION} as build | ||
|
||
COPY . /src/loki | ||
WORKDIR /src/loki | ||
RUN make clean && make BUILD_IN_CONTAINER=false logcli | ||
|
||
FROM alpine:3.18.5 | ||
|
||
RUN apk add --no-cache ca-certificates | ||
FROM gcr.io/distroless/base-nossl:debug | ||
|
||
COPY --from=build /src/loki/cmd/logcli/logcli /usr/bin/logcli | ||
SHELL [ "/busybox/sh", "-c" ] | ||
RUN ln -s /busybox/sh /bin/sh | ||
|
||
ENTRYPOINT [ "/usr/bin/logcli" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
FROM golang:1.22.5 as build | ||
ARG GO_VERSION=1.22 | ||
FROM golang:${GO_VERSION} as build | ||
|
||
COPY . /src/loki | ||
WORKDIR /src/loki | ||
RUN make clean && CGO_ENABLED=0 go build ./cmd/logql-analyzer/ | ||
|
||
FROM alpine:3.18.5 | ||
|
||
RUN apk add --no-cache ca-certificates | ||
FROM gcr.io/distroless/base-nossl:debug | ||
|
||
COPY --from=build /src/loki/logql-analyzer /usr/bin/logql-analyzer | ||
SHELL [ "/busybox/sh", "-c" ] | ||
RUN ln -s /busybox/sh /bin/sh | ||
|
||
ENTRYPOINT [ "/usr/bin/logql-analyzer" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
FROM golang:1.22.5 as build | ||
ARG GO_VERSION=1.22 | ||
FROM golang:${GO_VERSION} as build | ||
|
||
COPY . /src/loki | ||
WORKDIR /src/loki | ||
RUN go env GOARCH > /goarch | ||
RUN make clean && make GOARCH=$(cat /goarch) BUILD_IN_CONTAINER=true GOEXPERIMENT=boringcrypto loki-canary-boringcrypto | ||
|
||
FROM alpine:3.18.5 | ||
RUN apk add --update --no-cache ca-certificates | ||
RUN apk add --no-cache libc6-compat | ||
FROM gcr.io/distroless/base-nossl:debug | ||
COPY --from=build /src/loki/cmd/loki-canary-boringcrypto/loki-canary-boringcrypto /usr/bin/loki-canary | ||
SHELL [ "/busybox/sh", "-c" ] | ||
RUN ln -s /busybox/sh /bin/sh | ||
ENTRYPOINT [ "/usr/bin/loki-canary" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
FROM golang:1.22.5 as build | ||
ARG GO_VERSION=1.22 | ||
FROM golang:${GO_VERSION} as build | ||
|
||
COPY . /src/loki | ||
WORKDIR /src/loki | ||
RUN make clean && make BUILD_IN_CONTAINER=false loki-canary | ||
|
||
FROM alpine:3.18.5 | ||
RUN apk add --update --no-cache ca-certificates | ||
FROM gcr.io/distroless/base-nossl:debug | ||
|
||
COPY --from=build /src/loki/cmd/loki-canary/loki-canary /usr/bin/loki-canary | ||
SHELL [ "/busybox/sh", "-c" ] | ||
RUN ln -s /busybox/sh /bin/sh | ||
ENTRYPOINT [ "/usr/bin/loki-canary" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
ARG BUILD_IMAGE=grafana/loki-build-image:0.33.4 | ||
ARG GO_VERSION=1.22 | ||
# Directories in this file are referenced from the root of the project not this folder | ||
# This file is intended to be called from the root like so: | ||
# docker build -t grafana/promtail -f cmd/promtail/Dockerfile . | ||
FROM golang:1.22.5-alpine as goenv | ||
FROM golang:${GO_VERSION} as goenv | ||
RUN go env GOARCH > /goarch && \ | ||
go env GOARM > /goarm | ||
|
||
FROM --platform=linux/amd64 $BUILD_IMAGE as build | ||
FROM $BUILD_IMAGE as build | ||
COPY --from=goenv /goarch /goarm / | ||
COPY . /src/loki | ||
WORKDIR /src/loki | ||
RUN make clean && GOARCH=$(cat /goarch) GOARM=$(cat /goarm) make BUILD_IN_CONTAINER=false loki-canary | ||
|
||
FROM alpine:3.18.5 | ||
RUN apk add --update --no-cache ca-certificates | ||
FROM gcr.io/distroless/base-nossl:debug | ||
COPY --from=build /src/loki/cmd/loki-canary/loki-canary /usr/bin/loki-canary | ||
SHELL [ "/busybox/sh", "-c" ] | ||
RUN ln -s /busybox/sh /bin/sh | ||
ENTRYPOINT [ "/usr/bin/loki-canary" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
FROM golang:1.22.5 as build | ||
ARG GO_VERSION=1.22 | ||
FROM golang:${GO_VERSION} as build | ||
COPY . /src/loki | ||
WORKDIR /src/loki | ||
RUN make clean && make BUILD_IN_CONTAINER=false migrate | ||
|
||
FROM alpine:3.18.5 | ||
RUN apk add --update --no-cache ca-certificates | ||
FROM gcr.io/distroless/base-nossl:debug | ||
|
||
COPY --from=build /src/loki/cmd/migrate/migrate /usr/bin/migrate | ||
#ENTRYPOINT [ "/usr/bin/migrate" ] | ||
CMD tail -f /dev/null | ||
SHELL [ "/busybox/sh", "-c" ] | ||
RUN ln -s /busybox/sh /bin/sh | ||
ENTRYPOINT [ "/busybox/tail", "-f", "/dev/null" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
FROM golang:1.22.5 as build | ||
ARG GO_VERSION=1.22 | ||
FROM golang:${GO_VERSION} as build | ||
|
||
COPY . /src/loki | ||
WORKDIR /src/loki | ||
RUN make clean && make BUILD_IN_CONTAINER=false loki-querytee | ||
|
||
FROM alpine:3.18.5 | ||
RUN apk add --update --no-cache ca-certificates | ||
FROM gcr.io/distroless/base-nossl:debug | ||
COPY --from=build /src/loki/cmd/querytee/querytee /usr/bin/querytee | ||
|
||
SHELL [ "/busybox/sh", "-c" ] | ||
RUN ln -s /busybox/sh /bin/sh | ||
|
||
ENTRYPOINT [ "/usr/bin/querytee" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.