mirror of https://github.com/grafana/loki
Use 0.28.1 build image and update go and alpine versions (#8583)
**What this PR does / why we need it**: - Use the 0.28.1 build image - Update Go version to 1.20.1 - Use Alpine 3.16.4 - Fix linter issues due to updated govet in 1.20.1 - Modify images to not create `/etc/nsswitch.conf` file anymore (available by default on Alpine 3.16.4) - Remove impossible test cases for `TestMemChunk_IteratorBounds`(see https://github.com/grafana/loki/pull/8591#discussion_r1115020111 for context) Signed-off-by: Michel Hollands <michel.hollands@grafana.com> Signed-off-by: Christian Haudum <christian.haudum@gmail.com> Co-authored-by: Christian Haudum <christian.haudum@gmail.com> Co-authored-by: DylanGuedes <djmgguedes@gmail.com>pull/8598/head
parent
48aa833229
commit
4f8d3240f6
@ -1,13 +1,13 @@ |
||||
FROM golang:1.19.5 as build |
||||
FROM golang:1.20.1 as build |
||||
|
||||
COPY . /src/loki |
||||
WORKDIR /src/loki |
||||
RUN make clean && CGO_ENABLED=0 go build ./cmd/logql-analyzer/ |
||||
|
||||
FROM alpine:3.15.4 |
||||
FROM alpine:3.16.4 |
||||
|
||||
RUN apk add --no-cache ca-certificates |
||||
|
||||
COPY --from=build /src/loki/logql-analyzer /usr/bin/logql-analyzer |
||||
|
||||
ENTRYPOINT [ "/usr/bin/logql-analyzer" ] |
||||
ENTRYPOINT [ "/usr/bin/logql-analyzer" ] |
||||
|
||||
@ -1,10 +1,10 @@ |
||||
FROM golang:1.19.5 as build |
||||
FROM golang:1.20.1 as build |
||||
|
||||
COPY . /src/loki |
||||
WORKDIR /src/loki |
||||
RUN make clean && make BUILD_IN_CONTAINER=false loki-canary |
||||
|
||||
FROM alpine:3.16.2 |
||||
FROM alpine:3.16.4 |
||||
RUN apk add --update --no-cache ca-certificates |
||||
COPY --from=build /src/loki/cmd/loki-canary/loki-canary /usr/bin/loki-canary |
||||
ENTRYPOINT [ "/usr/bin/loki-canary" ] |
||||
|
||||
@ -1,10 +1,10 @@ |
||||
FROM golang:1.19.5 as build |
||||
FROM golang:1.20.1 as build |
||||
|
||||
COPY . /src/loki |
||||
WORKDIR /src/loki |
||||
RUN make clean && make BUILD_IN_CONTAINER=false loki-querytee |
||||
|
||||
FROM alpine:3.16.2 |
||||
FROM alpine:3.16.4 |
||||
RUN apk add --update --no-cache ca-certificates |
||||
COPY --from=build /src/loki/cmd/querytee/querytee /usr/bin/querytee |
||||
ENTRYPOINT [ "/usr/bin/querytee" ] |
||||
|
||||
Loading…
Reference in new issue