Šimon DJ Čecháček
CCoder.com
•Created by Šimon DJ Čecháček on 7/29/2024 in #help
Application error: Cannot read properties of undefined (reading 'id')
One of my workspaces shows an error when I try to open its page from the list insice coder.
The error is:
I run the latest version of Coder on a Debian machine using docker for the workspaces.
7 replies
CCoder.com
•Created by Šimon DJ Čecháček on 4/30/2024 in #help
home directory of user changed owner to ubuntu user
27 replies
CCoder.com
•Created by Šimon DJ Čecháček on 3/25/2024 in #help
Terraforms docker_image extra_hosts flag get ignored
Hello,
I need to add some local records into /etc/hosts of every container made from my template, so i read the docker_image documentation on terraform and teried to use the extra_hosts parameter: https://registry.terraform.io/providers/kreuzwerker/docker/latest/docs/resources/image#extra_hosts
Unfortunately, it is ignored by Coder the DNS record is not resolvable in containers and the change is not save into /ets/hosts even on newly created workspaces.
I added it like this:
resource "docker_image" "main" {
name = "coder-${data.coder_workspace.me.id}"
build {
context = "./build"
build_args = {
USER = local.username
}
extra_hosts=["plesk.domain.tld:192.168.3.18","plesk:192.168.3.18"]
}
triggers = {
dir_sha1 = sha1(join("", [for f in fileset(path.module, "build/*") : filesha1(f)]))
}
}
Any idea why this is ignored?6 replies