Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

dev: fix Grafana startup on Linux#11533

Merged
LawnGnome merged 2 commits into
masterfrom
aharvey/grafana-linux-startup
Jun 16, 2020
Merged

dev: fix Grafana startup on Linux#11533
LawnGnome merged 2 commits into
masterfrom
aharvey/grafana-linux-startup

Conversation

@LawnGnome

Copy link
Copy Markdown
Contributor

The changes in #11483 made it difficult to start Grafana within a Linux development environment, and #11486 obscured the error in the goreman output. This restores the previous behaviour around the UID the container will run as, and ensures that logs will be dumped if the container exits unexpectedly.

The changes in #11483 made it difficult to start Grafana within a Linux
development environment, and #11486 obscured the error in the goreman output.
This restores the previous behaviour around the UID the container will run as,
and ensures that logs will be dumped if the container exits unexpectedly.
@LawnGnome LawnGnome requested review from a team, bobheadxi and emidoots June 16, 2020 18:13
Comment thread dev/grafana.sh Outdated
@emidoots

Copy link
Copy Markdown
Member

Thanks for sending this!

@codecov

codecov Bot commented Jun 16, 2020

Copy link
Copy Markdown

Codecov Report

Merging #11533 into master will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #11533      +/-   ##
==========================================
- Coverage   47.46%   47.45%   -0.01%     
==========================================
  Files        1401     1401              
  Lines       79460    79460              
  Branches     6728     6816      +88     
==========================================
- Hits        37712    37710       -2     
- Misses      38172    38173       +1     
- Partials     3576     3577       +1     
Flag Coverage Δ
#go 51.62% <ø> (-0.01%) ⬇️
#storybook 10.12% <ø> (ø)
#typescript 36.42% <ø> (ø)
#unit 47.05% <ø> (-0.01%) ⬇️
Impacted Files Coverage Δ
.../internal/codeintel/resolvers/graphql/locations.go 80.18% <0.00%> (-1.89%) ⬇️

@emidoots emidoots left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM; should we do the same thing in dev/prometheus.sh too?

@bobheadxi bobheadxi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks for looking into this and improving the logs too! 🚀

as @slimsag notes it might be nice to mirror these changes for Prometheus, but I can also take care of that in a separate PR :)

Comment thread dev/grafana.sh
Comment on lines +25 to +30
# Docker users on Linux will generally be using direct user mapping, which
# means that they'll want the data in the volume mount to be owned by the
# same user as is running this script. Fortunately, the Grafana container
# doesn't really care what user it runs as, so long as it can write to
# /var/lib/grafana.
DOCKER_USER="--user=$UID"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

📚

@LawnGnome

Copy link
Copy Markdown
Contributor Author

as @slimsag notes it might be nice to mirror these changes for Prometheus, but I can also take care of that in a separate PR :)

I'm happy to leave that to you if you have the time, since everything I know about Prometheus is that it was a movie, but if you want me to do that, let me know.

@LawnGnome LawnGnome merged commit 53c3f3c into master Jun 16, 2020
@LawnGnome LawnGnome deleted the aharvey/grafana-linux-startup branch June 16, 2020 22:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants