chore(dogfood): remove unnecessary docker host replace (#7269)

This commit is contained in:
Colin Adler
2023-04-24 23:58:09 -05:00
committed by GitHub
parent 8fc8559076
commit e2d8bda246
2 changed files with 2 additions and 4 deletions

View File

@@ -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"

View File

@@ -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