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

Let Loki start when using the debug image. #1372

Merged
merged 1 commit into from
Dec 5, 2019

Conversation

cyriltovena
Copy link
Contributor

The current debug image is waiting for the debugger to attach before starting Loki.
I don't think it makes sense to wait for the debugger for a service. I've also added --log to output logs of dlv.

Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Copy link
Member

@rfratto rfratto left a comment

Choose a reason for hiding this comment

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

LGTM!

@cyriltovena cyriltovena merged commit 3ffa385 into grafana:master Dec 5, 2019
@cyriltovena cyriltovena deleted the fix-debug-docker branch December 5, 2019 19:07
RutgerKe added a commit that referenced this pull request Dec 5, 2022
The 'grafana/loki-build-image' version was not specified, resulting in a
~6 month old 'latest' image. The new version has a different location
for the 'dlv' binary.

The promtail image would also hang waiting for a connection, this adds
the same flag, --continue, as added to the loki debug file in #1372
kavirajk pushed a commit that referenced this pull request Dec 8, 2022
**What this PR does / why we need it**:
The 'grafana/loki-build-image' version was not specified for the
promtail-debug docker image, resulting in a ~6 month old 'latest' image
as a build image. Updating this resulted in one more change: the newer
version has a different location for the 'dlv' binary.

The promtail-debug image would also hang waiting for a connection when
ran, this adds the same flag, `--continue`, as added to the loki debug
file in #1372.

**Special notes for your reviewer**:
I was interested in using the `-server.profiling_enabled=true` flag, to
enable pprof endpoints, and scrape with phlare. This flag is not
available in the non-debug version. Therefore I do not really care for
attaching a debugger right away. Open to removing that change though.

**Checklist**
- [x] Reviewed the `CONTRIBUTING.md` guide
- [ ] Documentation added
- [ ] Tests updated
- [ ] `CHANGELOG.md` updated
- [ ] Changes that require user attention or interaction to upgrade are
documented in `docs/sources/upgrading/_index.md`
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.

2 participants