influxdata / influxdata/influxdata-docker
Influxdb Entrypoint Typo
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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