-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Override default port using PORT environment variable #202
Conversation
By allowing the PORT environment variable to override the default port our service listens on we can deploy to a Cloudfoundry environment.
Update README.rst with information about using the ``PORT`` environment variable.
Adding what's changing in the PR proposed to add the ``PORT`` environment variable.
…de-using-PORT-environment-variable Adding ability to override default port using PORT environment variable
Build container and publish to ghcr.io upon successful CI workflow completion
pulling latest
Updated to resolve conflict and bump version according to your latest commits, please let me know what else may be required to get this merged as I believe it can benefit others who wish to run this workload in a cloudfoundry or similar environment which require applications to accept traffic on configurable ports via environment variable. |
Thanks for suggesting this change. I'm actually working to add support in |
Sounds like some exciting updates in 3.0, however looking at prometheus-aioexporter documentation it looks like it won't satisfy the reason for my raising this PR (see https://docs.cloudfoundry.org/devguide/deploy-apps/push-docker.html). The changes in this PR have been deployed to and working in a production cf environment since the PR was opened, and while my team is happy to continue using the fork the point of the PR was to ensure continuity and prevent a project from forking into separate projects maintained by different teams if not necessary. edit: |
Is the issue that with the 3.0 changes the port would be controlled by |
The point of updating the scripts to accept "PORT" was to be able to use the published container as-is in CloudFoundry environments which are not aware of the EXPOSE parameter in the dockerfile. In other words, accepting the proposed changes will allow deployment of your base published image in a cloud native manner whereas your suggestion would require additional work. No point in beating a dead horse, closing the PR on basis of the conflicts introduced. |
This feature makes the container suitable for deployment in a Cloudfoundry environment.