Kong / Kong/httpbin

allow setting the port via env var

Open
#19 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
20
Forks
11
PR merge metrics
No merged PRs in 30d

Description

Rather than hardcoding it to port 80 here it would be nice to be able to set the port to something else. For example, if the PORT=80 var is defined by default and the -b arg is dropped from the docker CMD, then gunicorn binds to 0.0.0.0:$PORT by default (docs here), which is more easily configurable.

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 with line 20 of the Dockerfile and the current gunicorn command, then review gunicorn's bind setting documentation linked in the issue. The change is complete when the container's listening port can be selected through PORT rather than being fixed at 80, while retaining the documented default behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
devops
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.