Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Loki build and Docker updates #13325

Merged
merged 14 commits into from
Jul 17, 2024
Merged

build: Loki build and Docker updates #13325

merged 14 commits into from
Jul 17, 2024

Conversation

paul1r
Copy link
Collaborator

@paul1r paul1r commented Jun 26, 2024

What this PR does / why we need it:
This PR does the following:

  • Passes a GO_VERSION argument into the Dockerfiles from the Makefile, allowing the version to be updated in a single place, and all images will be built with that Go version.
  • Changes the Docker images to use gcr.io/distroless/base:debug as a base, instead of Alpine.
  • Minor tidying of Dockerfiles

Which issue(s) this PR fixes:

Special notes for your reviewer:

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Documentation added
  • Tests updated
  • Title matches the required conventional commits format, see here
    • Note that Promtail is considered to be feature complete, and future development for logs collection will be in Grafana Alloy. As such, feat PRs are unlikely to be accepted unless a case can be made for the feature actually being a bug fix to existing behavior.
  • Changes that require user attention or interaction to upgrade are documented in docs/sources/setup/upgrade/_index.md
  • For Helm chart changes bump the Helm chart version in production/helm/loki/Chart.yaml and update production/helm/loki/CHANGELOG.md and production/helm/loki/README.md. Example PR
  • If the change is deprecating or removing a configuration option, update the deprecated-config.yaml and deleted-config.yaml files respectively in the tools/deprecated-config-checker directory. Example PR

@paul1r paul1r requested a review from a team as a code owner June 26, 2024 11:51
Copy link
Collaborator

@trevorwhitney trevorwhitney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Note we'll eventually want to expose the additional build args to the release pipeline.

@paul1r paul1r merged commit 29110fe into main Jul 17, 2024
62 checks passed
@paul1r paul1r deleted the paul1r/loki_build_updates branch July 17, 2024 20:20
simonswine added a commit to simonswine/pyroscope that referenced this pull request Jul 22, 2024
Following a trend by at other database teams:

* grafana/loki#13325
* grafana/mimir#8204
simonswine added a commit to simonswine/pyroscope that referenced this pull request Jul 22, 2024
Following a trend by at other database teams:

* grafana/loki#13325
* grafana/mimir#8204
simonswine added a commit to grafana/pyroscope that referenced this pull request Jul 23, 2024
* chore: Replace alpine with distroless

Following a trend by at other database teams:

* grafana/loki#13325
* grafana/mimir#8204

* Also build debug image for main
mraboosk pushed a commit to mraboosk/loki that referenced this pull request Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants