Skip to content
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

environment variables containing dots are not returned by System.getenv() in EnvironmentVariables #515

Open
lrozek opened this issue Jan 21, 2021 · 1 comment

Comments

@lrozek
Copy link

lrozek commented Jan 21, 2021

I am running web application in following docker image tomcat:9.0.41-jdk8-openjdk-buster. I tried to override excludecategories via environment variable called p6spy.config.excludecategories. However in this image System.getenv() doesn't return environment variables that contain dot in a name. Therefore it is not possible to override any property via environment variables, because EnvironmentVariables doesn't see them.
Please refer for releated issue at docker-library/openjdk#135

Would it be possible to introduce support for environment variables with underscore notation, ie:
p6spy_config_excludecategories instead of p6spy.config.excludecategories

@typekpb
Copy link
Member

typekpb commented Jan 23, 2021

@lrozek I think your idea is valid, feel free to provide PR for the desired solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants