influxdata / influxdata/influxdata-docker

Influxdb Entrypoint Typo

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

Nobody has claimed this yet.

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

Description

In the [Influxdb entrypoint script](https://github.com/influxdata/influxdata-docker/raw/master/influxdb/2.1/entrypoint.sh) an environmental variable of `DOCKER_INFLUXDB_INIT_USER` is called out rather then `DOCKER_INFLUXDB_INIT_USERNAME`. The script still works as the command `influx user list -n ''` does return the only user during initial setup.

``` go
function set_init_resource_ids () {
DOCKER_INFLUXDB_INIT_USER_ID="$(influx user list -n "${DOCKER_INFLUXDB_INIT_USER}" --hide-headers | cut -f 1)"
DOCKER_INFLUXDB_INIT_ORG_ID="$(influx org list -n "${DOCKER_INFLUXDB_INIT_ORG}" --hide-headers | cut -f 1)"
DOCKER_INFLUXDB_INIT_BUCKET_ID="$(influx bucket list -n "${DOCKER_INFLUXDB_INIT_BUCKET}" --hide-headers | cut -f 1)"
export DOCKER_INFLUXDB_INIT_USER_ID DOCKER_INFLUXDB_INIT_ORG_ID DOCKER_INFLUXDB_INIT_BUCKET_ID
}
```

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

Open influxdb/2.1/entrypoint.sh and inspect set_init_resource_ids, especially the variable passed to influx user list. Done means the entrypoint consistently uses the documented username variable while preserving the initial setup behavior; verify the surrounding shell script for matching references.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, shell
Domain
devops
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.