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

Copy tempo-query binary to /tempo-query #2453

Merged
merged 3 commits into from
May 12, 2023
Merged

Conversation

BertelBB
Copy link
Contributor

@BertelBB BertelBB commented May 10, 2023

What this PR does:
Updates the tempo-query Dockerfile such that it doesn’t copy tempo-query binary to /tmp dir but instead to root dir, i.e /tempo-query.

Context:

  • previous implementation forces tempo to run with root privileges in Kubernetes because it is also writing to files in /tmp directory
  • this solution is inline to how other tempo components are built and ensures /tmp dir exists with mkdir -p

Which issue(s) this PR fixes:
Fixes grafana/helm-charts#2024

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

- previous implementation forces tempo to run with root privileges in Kubernetes because it is also writing to files in /tmp directory
- this solution is inline to how other tempo components are built and ensures /tmp dir exists with mkdir -p
@CLAassistant
Copy link

CLAassistant commented May 10, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@electron0zero electron0zero left a comment

Choose a reason for hiding this comment

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

lgtm 👍🏼

btw, tempo-query is an optional component and we sent a PR to disable it by default in helm chars

cmd/tempo-query/Dockerfile Outdated Show resolved Hide resolved
Co-authored-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com>
@BertelBB
Copy link
Contributor Author

lgtm 👍🏼

btw, tempo-query is an optional component and we sent a PR to disable it by default in helm chars

Thanks for feedback. I updated comment according to suggestion


# This is silly, but it's important that tempo-query gets copied into /tmp
Copy link
Member

Choose a reason for hiding this comment

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

you didn't like my cheeky comment ;) ?

Copy link
Member

Choose a reason for hiding this comment

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

oh, @electron0zero suggested that!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Haha I personally liked it and that’s why I initially kept that part in there 😄

Copy link
Member

Choose a reason for hiding this comment

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

I was okay with either but wanted to sound like we know what we are doing 😆

@joe-elliott joe-elliott merged commit bcd9204 into grafana:main May 12, 2023
14 checks passed
@BertelBB BertelBB deleted the patch-1 branch May 12, 2023 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[tempo-distributed] /tmp is read only in the tempo-query container
4 participants