mirror of
https://github.com/coder/coder.git
synced 2025-07-27 02:39:31 +00:00
chore(dogfood): remove unnecessary docker host replace (#7269)
This commit is contained in:
@@ -157,9 +157,8 @@ resource "docker_container" "workspace" {
|
|||||||
image = docker_image.dogfood.name
|
image = docker_image.dogfood.name
|
||||||
name = local.container_name
|
name = local.container_name
|
||||||
# Hostname makes the shell more user friendly: coder@my-workspace:~$
|
# Hostname makes the shell more user friendly: coder@my-workspace:~$
|
||||||
hostname = data.coder_workspace.me.name
|
hostname = data.coder_workspace.me.name
|
||||||
# Use the docker gateway if the access URL is 127.0.0.1
|
entrypoint = ["sh", "-c", coder_agent.dev.init_script]
|
||||||
entrypoint = ["sh", "-c", replace(coder_agent.dev.init_script, "/localhost|127\\.0\\.0\\.1/", "host.docker.internal")]
|
|
||||||
# CPU limits are unnecessary since Docker will load balance automatically
|
# CPU limits are unnecessary since Docker will load balance automatically
|
||||||
memory = 32768
|
memory = 32768
|
||||||
runtime = "sysbox-runc"
|
runtime = "sysbox-runc"
|
||||||
|
@@ -117,7 +117,6 @@ resource "coder_agent" "main" {
|
|||||||
curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server --version 4.11.0
|
curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server --version 4.11.0
|
||||||
/tmp/code-server/bin/code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 &
|
/tmp/code-server/bin/code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 &
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# code-server
|
# code-server
|
||||||
|
Reference in New Issue
Block a user