-
Notifications
You must be signed in to change notification settings - Fork 11
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
clearml.conf environment variables passed into docker image are not in VS Code session #7
Comments
I see in interactive_session.py, that the variables have to be manually exported. Here: clearml-session/clearml_session/interactive_session_task.py Lines 485 to 489 in ff8d97f
Could somehow the added environment variables be appended to this list? Are the variables in |
Hi @johnml1135 , Sorry, missed this 🙁 What clearml-agent version are you using? |
I believe we are using the most recent, v1.1.1 (released in August). |
Hi @johnml1135
if you are massing variables into the docker, any process should have them, this means any process (including the SSH session) should have them. That said, it could be that they are overwritten, is that the case ?
Wouldn't it make sense to have the credntials set in the Can you verify the issue with |
The credentials are set in clearml.conf:
These clearml-session/clearml_session/interactive_session_task.py Lines 485 to 489 in ff8d97f
That is, there would need to be a new line that echo export MYVAR=MYVALUE for each "--env","AWS_ACCESS_KEY_ID=....." .
|
@johnml1135 just making sure to ask if you did 🙂 |
I pass environment variables into the docker image ['--env', 'MY_VARIABLE=my_value'], etc. When I run the clearml-session and log into VS Code through the SSH connection, the variables are no longer there.
These environment variables are needed (they contain AWS credentials, etc.). Can they (somehow) be passed to the SSH instance starting up?
The text was updated successfully, but these errors were encountered: