[Feature Request] Custom envsubst for templating with default values
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 3.5k
- Forks
- 1.8k
- Avg merge
- 42m
- Merged PRs (30d)
- 2
Description
The problem: by default nginx in docker uses GNU envsubst that can't proceed variables with default values like ${var:-DEFAULT}. We can use a8m envsubst or stephenc envsub instead, the first one has already had a prebuilded binary for x86_64 arch and it can be easily builded with docker and golang in a separate build stage.
Contributor guide
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
No repository file or test is named. Start by reviewing the Docker image build configuration and where GNU envsubst is invoked, then compare the proposed a8m envsubst and stephenc envsub options. Done means templating supports default values such as ${var:-DEFAULT} in the published NGINX images.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go, nginx, shell
- Domain
- build-system, devops, infrastructure
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100