**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>
* Add integration tests which test happy path
This PR adds simple go based integration tests, which can run Loki
in two modes:
- single-binary
- micro-services with index-gateway
After standing up it performs the most basic duties like:
- ingest logs
- run a range query
- query label names and label values
This is meant to catch more significant problem as early as possible in
the PR.
We should aim to keep this as simple as possible.
* Replace config generation with template
Makes configuration much more readable and avoids easy mistakes
* Apply suggestions from code review
Co-authored-by: Michel Hollands <42814411+MichelHollands@users.noreply.github.com>
Co-authored-by: Michel Hollands <42814411+MichelHollands@users.noreply.github.com>