fix: update reference to agent.dev in examples and docs (#3198)

* fix: update agent ID in example templates
* fix: update agent ID in dogfood template
* chore: update default agent ID in documentation
* fix: develop.sh: start FE after template is created; leave template dir around if template creation fails
This commit is contained in:
Cian Johnston
2022-07-26 14:09:09 +01:00
committed by GitHub
parent 9a9912c8ce
commit 2c0d57e8c0
14 changed files with 30 additions and 27 deletions
@@ -53,7 +53,7 @@ resource "coder_agent" "main" {
}
resource "coder_app" "code-server" {
agent_id = coder_agent.dev.id
agent_id = coder_agent.main.id
url = "http://localhost:8080/?folder=/home/coder"
icon = "/icon/code.svg"
}
@@ -70,8 +70,8 @@ resource "docker_container" "workspace" {
hostname = lower(data.coder_workspace.me.name)
dns = ["1.1.1.1"]
# Use the docker gateway if the access URL is 127.0.0.1
entrypoint = ["sh", "-c", replace(coder_agent.dev.init_script, "127.0.0.1", "host.docker.internal")]
env = ["CODER_AGENT_TOKEN=${coder_agent.dev.token}"]
entrypoint = ["sh", "-c", replace(coder_agent.main.init_script, "127.0.0.1", "host.docker.internal")]
env = ["CODER_AGENT_TOKEN=${coder_agent.main.token}"]
host {
host = "host.docker.internal"
ip = "host-gateway"