-
Notifications
You must be signed in to change notification settings - Fork 881
devcontainer support #5559
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
Comments
This comment was marked as outdated.
This comment was marked as outdated.
This feature would ease the transition from local to remote development. We should be able to implement at the terraform-level, similar to #5314. |
Per @kylecarbs, release ETA is end of next week. |
Let me shortly describe a scenario here, where this would help alot in my eyes. We have several projects with different tooling and setups. Vscode is able to bundle this very nicely directly in the project using .devcontainers and .vscode/settings inside every project bringing up an pre-configured environment in the same way for every developer. This approach still has the problem, that every developer needs a machine with good docker support and performance. But especially for app-development this kind-off falls apart, since we have pre-packaged android environments, but need to run for ios on baremetal macos system. MacOS seems to have crappy docker performance using docker-desktop compared to native docker support of linux, espacially when filesystem translations between host-os filesystem apfs and docker-desktop internal filesystem (e.g. ext4) comes into play (which is the case of the mapped project folder in devcontainers). So this meens at the moment, that we need 2 distinct machines for app-development per developer. One for macOS based for ios development and one for everything else, where the devcointer approach works nice. In my eyes this problem can be more or less completely avoided, when coder runs on a baremetal linux machine and is able to open git projects in vscode with devcontainer support on project level. Then the app-developer can use just the browser accessing coder for every development task except ios dev, avoiding buy, setup and maintenance of a second machine per developer. Is that scope of the devcontainer support idea here in coder? |
Has there been any progress around this? 😉 |
Looks like there has been some work done in #8256 to add documentation how to work with devcontainers in templates. |
Yep! You can try devcontainers + Coder today by following those docs. We're tightening our integration with GitHub to make it easier to work with private repos, which is why it is labeled as |
👋🏼 Docs for using devcontainers are here: https://coder.com/docs/v2/latest/templates/devcontainers We plan on doing two things before we close out this issue:
|
Feedback is also welcome here or on the envbuilder repo! |
@bpmct Can we add instructions/examples on how to use devcontainers with rootless container variants like rootless podman. We want to allow for devcontainers but don't want to give user controlled pods privileged mode. |
are the |
@xangelix Couldn't you just use the dotfile capability that already exists to inject user level env vars among other things? |
i have a selfhosted coder-oss, how i can use the devcontainers functionality? |
kind of, but also kind of not afaik all of the secret management options in coder right now are not well suited to more ephemeral devcontainer/envbuilder templates |
@xangelix If you can use a terraform datasource to grab secrets from an external system that could work. I plan to do that with hashicorp vault. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Let's take the OOM discussion to #8892 |
From the spec:
There is a neat way to use Coder with the devcontainer CLI, but it would be great if the Coder agent had first class support for running workspaces via a devcontainer.
The text was updated successfully, but these errors were encountered: