modules icon indicating copy to clipboard operation
modules copied to clipboard

feat: create a new "Install Dev Container feature" module

Open phorcys420 opened this issue 1 year ago • 5 comments

I think we should have an easy way to install Dev Container features in Coder workspaces (even outside of Dev Containers).

My reasoning behind that is that there is already a lot of great Dev Container features that you are currently unable to use with Coder without hacks.

There are also quite a lot of active modules that are used to maintain dependencies and collide w/ Coder modules (e.g nodejs and jupyterlab).

Given these points, I think we could replace part of our modules with existing Dev Container features and maybe migrate some of our existing features to contribute back to the Dev Container ecosystem.


Example usage

module "nodejs" {
  source   = "registry.coder.com/modules/install-devcontainer-feature/coder"
  
  # Ideally could be either a Git URL, a local folder or a path to an image
  # AFAIK the images are only used to store data and not really as proper images.
  feature = "ghcr.io/devcontainers/templates/javascript-node:4.0.2"
  
  version  = "1.0.0"
  agent_id = coder_agent.example.id
}

phorcys420 avatar Sep 26 '24 17:09 phorcys420