Replies: 3 comments 2 replies
-
|
Hi 👋 Looping in @chrmarti to help answer your question. On a side note, if you use supporting tools like GitHub Codespaces then you'd be able to configure repo secrets to achieve this. See https://docs.github.com/en/codespaces/managing-your-codespaces/managing-your-account-specific-secrets-for-github-codespaces |
Beta Was this translation helpful? Give feedback.
-
|
I would love if you could dynamically set variables/build args like so: |
Beta Was this translation helpful? Give feedback.
-
|
I would find this very useful. Right now it feels the localEnv behavior is still suspect at times in picking up variables. It shouldn't be the only way that we can dynamically specify mount points. For example if I want to set a mount point based on a localEnv, but some users may or may not set it, it would be nice to be able to set a fallback that is also dynamic. For example: "source=${localEnv:HF_HOME:${localEnv:HOME}/.cache/huggingface},target=/home/ubuntu/.cache/huggingface,type=bind" However such a construct is not supported. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I understand that in a
devcontainer.jsonfile, I can use${localEnv:VARIABLE_NAME}to access environment variables on the host. This is very useful, but I would like to have access to some project-specific variables that I normally access by sourcing a bash script from the project. Is there a way to effectively source a bash script to modify the environment variables before thedevcontainer.jsongets parsed such that they are available through the${localEnv:VARIABLE_NAME}substitution mechanism?As an example, one of these project-specific variables defines the docker image/tag string for the project. I'd like to use this value for the
imageproperty in thedevcontainer.jsonfile so that I can have a single source of truth for the docker image/tag string in my project.I'm aware that I can achieve what I'm after by sourcing my project-specific script before running my
devcontainer.jsonsupporting tool (in this case, I'm using VS Code). But I'd prefer a solution that does not place constraints on how the user starts the tool.Beta Was this translation helpful? Give feedback.
All reactions