Skip to content

Commit

Permalink
Use 0.28.1 build image and update go and alpine versions (grafana#8583)
Browse files Browse the repository at this point in the history
**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
grafana#8591 (comment) 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>
  • Loading branch information
3 people authored Feb 23, 2023
1 parent 5f76da4 commit 1831d74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions production/helm/loki/src/helm-test/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.18.5 as build
FROM golang:1.20.1 as build

# build via Makefile target helm-test-image in root
# Makefile. Building from this directory will not be
Expand All @@ -7,7 +7,7 @@ COPY . /src/loki
WORKDIR /src/loki
RUN make clean && make BUILD_IN_CONTAINER=false helm-test

FROM alpine:3.16.2
FROM alpine:3.16.4
RUN apk add --update --no-cache ca-certificates=20220614-r0
COPY --from=build /src/loki/production/helm/loki/src/helm-test/helm-test /usr/bin/helm-test
ENTRYPOINT [ "/usr/bin/helm-test" ]

0 comments on commit 1831d74

Please sign in to comment.