fix: pass INSTALL_DIR to bash, not curl

This commit is contained in:
Zach Kipp 2025-12-05 13:27:27 -07:00
parent 05c3b226e1
commit d425df477c
2 changed files with 13 additions and 3 deletions

View File

@ -32,8 +32,8 @@ data "coder_task" "me" {}
# Or use a custom agent: # Or use a custom agent:
module "claude-code" { module "claude-code" {
count = data.coder_workspace.me.start_count count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/claude-code/coder" source = "/Users/zach/src/registry/registry/coder/modules/claude-code"
version = "4.0.0" # version = "4.0.0"
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
workdir = "/home/coder/projects" workdir = "/home/coder/projects"
order = 999 order = 999
@ -43,6 +43,12 @@ module "claude-code" {
model = "sonnet" model = "sonnet"
permission_mode = "plan" permission_mode = "plan"
post_install_script = data.coder_parameter.setup_script.value post_install_script = data.coder_parameter.setup_script.value
enable_boundary = true
boundary_version = "v0.2.1"
boundary_log_dir = "/tmp/boundary_logs"
boundary_log_level = "DEBUG"
boundary_additional_allowed_urls = ["method=GET domain=google.com"]
boundary_proxy_port = "8087"
} }
# 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
@ -359,6 +365,10 @@ resource "docker_container" "workspace" {
volume_name = docker_volume.home_volume.name volume_name = docker_volume.home_volume.name
read_only = false read_only = false
} }
capabilities {
add = ["NET_ADMIN", "SYS_ADMIN"]
}
security_opts = ["seccomp=unconfined"]
# Add labels in Docker to keep track of orphan resources. # Add labels in Docker to keep track of orphan resources.
labels { labels {

View File

@ -83,7 +83,7 @@ function install_boundary() {
else else
# Install boundary using official install script to user-local directory # Install boundary using official install script to user-local directory
echo "Installing boundary using official install script (version: $ARG_BOUNDARY_VERSION)" echo "Installing boundary using official install script (version: $ARG_BOUNDARY_VERSION)"
INSTALL_DIR="$HOME/.local/bin" curl -fsSL https://raw.githubusercontent.com/coder/boundary/main/install.sh | bash -s -- --version "$ARG_BOUNDARY_VERSION" curl -fsSL https://raw.githubusercontent.com/coder/boundary/main/install.sh | INSTALL_DIR="$HOME/.local/bin" bash -s -- --version "$ARG_BOUNDARY_VERSION"
fi fi
} }