-
Notifications
You must be signed in to change notification settings - Fork 6
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
ENV variables are not straightforward to use #866
Comments
Since I was assigned I can add a few points:
fyi @sanderegg |
After a discussion with @pcrespov we came to the conclusion that some things could be improved rather swiftly:
Other more involved changes are:
|
@mrnicegyu11 I used this repo because that is where this is mostly used. |
thanks a lot, your points all sound very good, let me know if or how I can help :--) |
Problem
People do not understand how ENVs are defined.
example setting:
WEBSERVER_TRACING
which is composed of at leastTRACING_OPENTELEMETRY_COLLECTOR_ENDPOINT
andTRACING_OPENTELEMETRY_COLLECTOR_PORT
WEBSERVER_TRACING
is not passed via docker-compose.yml, then definingTRACING_OPENTELEMETRY_COLLECTOR_ENDPOINT
andTRACING_OPENTELEMETRY_COLLECTOR_PORT
auto-enables the tracing --> this is okWEBSERVER_TRACING
is not passed via docker-compose.yml, it is not possible to disable tracing --> not good and not intuitiveTRACING_OPENTELEMETRY_COLLECTOR_ENDPOINT
orTRACING_OPENTELEMETRY_COLLECTOR_PORT
but it is not possible in the current system, and setting something likeTRACING_OPENTELEMETRY_COLLECTOR_ENDPOINT=
is understood as "value is set to empty" which pydantic-settings parser complain about --> problemWEBSERVER_TRACING
via docker-compose.yml and set its value to 'null', which takes precedence over any value set inTRACING_OPENTELEMETRY_COLLECTOR_ENDPOINT
andTRACING_OPENTELEMETRY_COLLECTOR_PORT
--> works but not intuitive and also implies that osparc-simcore devs must add every composed ENV variables in the docker-compose.ymlSome side issues:
a few requirements until now
Other problems while releasing
The text was updated successfully, but these errors were encountered: