editted the java and gradle path and changed to openjdk:21

This commit is contained in:
2026-03-19 15:14:05 +01:00 Verified
parent 17bc51166a
commit dfeb4d8ce4
2 changed files with 8 additions and 9 deletions
+5
View File
@@ -164,6 +164,11 @@ resource "docker_container" "workspace" {
# Hostname makes the shell more user friendly: coder@my-workspace:~$
hostname = data.coder_workspace.me.name
# Use the docker gateway if the access URL is 127.0.0.1
entrypoint = [
"sh", "-c", "chown", "-R", "${local.username}:${local.username}", "/home/${local.username}",
"&&", "exec",
"sh", "-c", replace(coder_agent.main.init_script, "/localhost|127\\.0\\.0\\.1/", "host.docker.internal")
]
entrypoint = ["sh", "-c", replace(coder_agent.main.init_script, "/localhost|127\\.0\\.0\\.1/", "host.docker.internal")]
env = ["CODER_AGENT_TOKEN=${coder_agent.main.token}"]
host {