feat: update Tasks on Docker Template (#418)
This commit is contained in:
parent
8d556a8ab7
commit
2937286712
@ -24,7 +24,6 @@ module "claude-code" {
|
|||||||
source = "registry.coder.com/coder/claude-code/coder"
|
source = "registry.coder.com/coder/claude-code/coder"
|
||||||
version = "2.0.0"
|
version = "2.0.0"
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
agent_name = "main"
|
|
||||||
folder = "/home/coder/projects"
|
folder = "/home/coder/projects"
|
||||||
install_claude_code = true
|
install_claude_code = true
|
||||||
claude_code_version = "latest"
|
claude_code_version = "latest"
|
||||||
@ -45,10 +44,9 @@ variable "anthropic_api_key" {
|
|||||||
sensitive = true
|
sensitive = true
|
||||||
}
|
}
|
||||||
resource "coder_env" "anthropic_api_key" {
|
resource "coder_env" "anthropic_api_key" {
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
agent_name = "main"
|
name = "CODER_MCP_CLAUDE_API_KEY"
|
||||||
name = "CODER_MCP_CLAUDE_API_KEY"
|
value = var.anthropic_api_key
|
||||||
value = var.anthropic_api_key
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# We are using presets to set the prompts, image, and set up instructions
|
# We are using presets to set the prompts, image, and set up instructions
|
||||||
@ -176,22 +174,19 @@ data "coder_parameter" "preview_port" {
|
|||||||
|
|
||||||
# Other variables for Claude Code
|
# Other variables for Claude Code
|
||||||
resource "coder_env" "claude_task_prompt" {
|
resource "coder_env" "claude_task_prompt" {
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
agent_name = "main"
|
name = "CODER_MCP_CLAUDE_TASK_PROMPT"
|
||||||
name = "CODER_MCP_CLAUDE_TASK_PROMPT"
|
value = data.coder_parameter.ai_prompt.value
|
||||||
value = data.coder_parameter.ai_prompt.value
|
|
||||||
}
|
}
|
||||||
resource "coder_env" "app_status_slug" {
|
resource "coder_env" "app_status_slug" {
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
agent_name = "main"
|
name = "CODER_MCP_APP_STATUS_SLUG"
|
||||||
name = "CODER_MCP_APP_STATUS_SLUG"
|
value = "ccw"
|
||||||
value = "ccw"
|
|
||||||
}
|
}
|
||||||
resource "coder_env" "claude_system_prompt" {
|
resource "coder_env" "claude_system_prompt" {
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
agent_name = "main"
|
name = "CODER_MCP_CLAUDE_SYSTEM_PROMPT"
|
||||||
name = "CODER_MCP_CLAUDE_SYSTEM_PROMPT"
|
value = data.coder_parameter.system_prompt.value
|
||||||
value = data.coder_parameter.system_prompt.value
|
|
||||||
}
|
}
|
||||||
|
|
||||||
data "coder_provisioner" "me" {}
|
data "coder_provisioner" "me" {}
|
||||||
@ -301,38 +296,27 @@ module "code-server" {
|
|||||||
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
|
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
|
||||||
version = "~> 1.0"
|
version = "~> 1.0"
|
||||||
|
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
agent_name = "main"
|
order = 1
|
||||||
order = 1
|
|
||||||
}
|
|
||||||
|
|
||||||
module "vscode" {
|
|
||||||
count = data.coder_workspace.me.start_count
|
|
||||||
source = "registry.coder.com/coder/vscode-desktop/coder"
|
|
||||||
version = "1.1.0"
|
|
||||||
agent_id = coder_agent.main.id
|
|
||||||
agent_name = "main"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module "windsurf" {
|
module "windsurf" {
|
||||||
count = data.coder_workspace.me.start_count
|
count = data.coder_workspace.me.start_count
|
||||||
source = "registry.coder.com/coder/windsurf/coder"
|
source = "registry.coder.com/coder/windsurf/coder"
|
||||||
version = "1.1.0"
|
version = "1.1.0"
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
agent_name = "main"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module "cursor" {
|
module "cursor" {
|
||||||
count = data.coder_workspace.me.start_count
|
count = data.coder_workspace.me.start_count
|
||||||
source = "registry.coder.com/coder/cursor/coder"
|
source = "registry.coder.com/coder/cursor/coder"
|
||||||
version = "1.2.0"
|
version = "1.2.0"
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
agent_name = "main"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module "jetbrains" {
|
module "jetbrains" {
|
||||||
count = data.coder_workspace.me.start_count
|
count = data.coder_workspace.me.start_count
|
||||||
source = "registry.coder.com/modules/coder/jetbrains/coder"
|
source = "registry.coder.com/coder/jetbrains/coder"
|
||||||
version = "~> 1.0"
|
version = "~> 1.0"
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
agent_name = "main"
|
agent_name = "main"
|
||||||
@ -368,7 +352,6 @@ resource "docker_volume" "home_volume" {
|
|||||||
|
|
||||||
resource "coder_app" "preview" {
|
resource "coder_app" "preview" {
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
agent_name = "main"
|
|
||||||
slug = "preview"
|
slug = "preview"
|
||||||
display_name = "Preview your app"
|
display_name = "Preview your app"
|
||||||
icon = "${data.coder_workspace.me.access_url}/emojis/1f50e.png"
|
icon = "${data.coder_workspace.me.access_url}/emojis/1f50e.png"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user