influxdata / influxdata/influxdata-docker

Enable entrypoint.sh shell commands debugging

Open
#476 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
364
Forks
255
Avg merge
3h 18m
Merged PRs (30d)
7

Description

__Proposal:__

Add ability to debug `entrypoint.sh` shell commands in Influxdb container image e.g. by `set -x` when log level is set to `debug`.

__Current behavior:__

Currently I have to copy and overwrite init script with my version that contains `set -x`

__Desired behavior:__

When I set `--log-level=debug` I want to see shell error messages of the commands that were executed.

__Alternatives considered:__

Add additional environment variable that will enable `set -x`, e.g. `DOCKER_INIT_DEBUG` or something like that.

__Use case:__

That would speed up debugging for inexperienced influxdb operators.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading entrypoint.sh and trace how the container handles the --log-level=debug setting. Confirm the existing initialization flow and choose between that setting or the proposed environment variable; done means shell command errors are visible during debug-level container startup without copying the script.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, shell
Domain
devops
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.