mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
chore(cli): disable agent devcontainer integration by default (#16531)
Until we have more of the building blocks in place, disable the agent devcontainer integration by default. We'll enable it by default at a later date.
This commit is contained in:
+1
-1
@@ -475,7 +475,7 @@ func (r *RootCmd) workspaceAgent() *serpent.Command {
|
||||
},
|
||||
{
|
||||
Flag: "devcontainers-enable",
|
||||
Default: "true",
|
||||
Default: "false",
|
||||
Env: "CODER_AGENT_DEVCONTAINERS_ENABLE",
|
||||
Description: "Allow the agent to automatically detect running devcontainers.",
|
||||
Value: serpent.BoolOf(&devcontainersEnabled),
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@ OPTIONS:
|
||||
--debug-address string, $CODER_AGENT_DEBUG_ADDRESS (default: 127.0.0.1:2113)
|
||||
The bind address to serve a debug HTTP server.
|
||||
|
||||
--devcontainers-enable bool, $CODER_AGENT_DEVCONTAINERS_ENABLE (default: true)
|
||||
--devcontainers-enable bool, $CODER_AGENT_DEVCONTAINERS_ENABLE (default: false)
|
||||
Allow the agent to automatically detect running devcontainers.
|
||||
|
||||
--log-dir string, $CODER_AGENT_LOG_DIR (default: /tmp)
|
||||
|
||||
@@ -374,6 +374,7 @@ resource "docker_container" "workspace" {
|
||||
"CODER_PROC_PRIO_MGMT=1",
|
||||
"CODER_PROC_OOM_SCORE=10",
|
||||
"CODER_PROC_NICE_SCORE=1",
|
||||
"CODER_AGENT_DEVCONTAINERS_ENABLE=1",
|
||||
]
|
||||
host {
|
||||
host = "host.docker.internal"
|
||||
|
||||
Reference in New Issue
Block a user