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

Provide a way for programs to know they're running inside a devcontainer/envbuilder workspace #212

Closed
Tracked by #132
mafredri opened this issue May 27, 2024 · 0 comments · Fixed by #223
Closed
Tracked by #132
Assignees
Labels
enhancement New feature or request

Comments

@mafredri
Copy link
Member

To allow #68 to work seamlessly there needs to be a way of informing programs that they're running inside a devcontainer.

Example use-case: A coder module (e.g. code-server) runs a startup/install script, sees DEVCONTAINER=true, looks for the devcontainer.json to access .extensions and .settings from customizations.vscode.

Where to look for this devcontainer.json will depends on #211.

This can be accomplished via e.g. environment variables (ENVBUILDER=true, DEVCONTAINER=true). Where to look for the file can also be an env (e.g. DEVCONTAINER_CONFIG=/.devcontainer.json).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants