-
Notifications
You must be signed in to change notification settings - Fork 27
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
✨ Auto inject osparc environments to dynamic services #5966
✨ Auto inject osparc environments to dynamic services #5966
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5966 +/- ##
=========================================
+ Coverage 84.5% 88.5% +3.9%
=========================================
Files 10 1053 +1043
Lines 214 46585 +46371
Branches 25 562 +537
=========================================
+ Hits 181 41248 +41067
- Misses 23 5214 +5191
- Partials 10 123 +113
Flags with carried forward coverage won't be shown. Click here to find out more.
|
f43f0f3
to
d4c390a
Compare
services/director-v2/src/simcore_service_director_v2/modules/osparc_variables/substitutions.py
Outdated
Show resolved
Hide resolved
services/director-v2/src/simcore_service_director_v2/modules/osparc_variables/substitutions.py
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that is very nice! thanks!
Now regarding your question, I think for example in s4l the variables are probably needed in the core service which I do not think is the main one. but @mguidon can enlighten us
If that is the case, I do not have the info to know which service is "the core" service |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice, thanks!
Minor thought on the name of the variable OSPARC_NODE_ID
: I guess in the code you normally say "node" and this word is mostly used by devs. For user-facing docs, etc... we tend to use more "Service".
But I assume users who will use this envs are enough dev-oriented to understand what that variable represent. 😉
@elisabettai Unfortunately this is already decided and used in the client side. Can you perhaps follow up with a small entry in the manual at some time? Not urgent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool! Thanks a lot
21a70f9
to
d455627
Compare
351e68f
to
eb42cc4
Compare
What do these changes do?
Injects automatically
to all services in a dynamic-service compose. I.e. all dynamic services get automatically access to these environs. NOTE that the key/secrets are customised per user.
@sanderegg @mguidon should we only inject in the "main" service, i.e. the one specified by
simcore.service.container-http-entrypoint
?Related issue/s
How to test
services/director-v2/tests/unit/test_modules_osparc_variables.py
printenv | sort | grep OSPARC_
and check that all the env-vars above are definedDev-ops checklist