- Notifications
You must be signed in to change notification settings - Fork924
Description
Allow a template author to define a devcontainer as part of acoder_agent
resource (or even as part of a separatecoder_agent_devcontainer
resource):
resource "coder_agent" "main" { [...] devcontainer { workspace_folder = "$${HOME}/src/devcontainer_repo" # Required config = ".devcontainer/devcontainer.json" # optional, default # additional options TBD }}
Expose agent API endpoints to start and stop the devcontainer using@devcontainers/cli
e.g. the agent will simply run
cd $DEVCONTAINER_DIR && devcontainer up --workspace-folder .
Wire these up tocoderd
endpoints to trigger the start and stop.
For now, only support Docker via@devcontainers/cli
.
This will require supporting work from the Terraform provider.
TODO: should this part of thecoder_agent
schema, or a separate data source entirely?