houkai_3rd
houkai_3rd
CCoder.com
Created by houkai_3rd on 9/25/2024 in #help
Memory and CPU limitations do not apply in NOMAD
2 Is it possible to limit storage? 3 Is there any way to keep nodejs installed after a reboot?
5 replies
CCoder.com
Created by houkai_3rd on 9/25/2024 in #help
Memory and CPU limitations do not apply in NOMAD
workspace.nomad.tpl
job "workspace" {
datacenters = ["dc1"]
namespace = "${workspace_tag}"
type = "service"
group "workspace" {
volume "home_volume" {
type = "csi"
source = "${home_volume_name}"
read_only = false
attachment_mode = "file-system"
access_mode = "single-node-writer"
}
network {
port "http" {}
}
task "workspace" {
driver = "docker"
config {
image = "codercom/enterprise-base:ubuntu"
ports = ["http"]
labels {
name = "${workspace_tag}"
managed_by = "coder"
}
hostname = "${workspace_name}"
entrypoint = ["sh", "-c", "sudo chown coder:coder -R /home/coder && echo '${base64encode(coder_init_script)}' | base64 --decode | sh"]
}
volume_mount {
volume = "home_volume"
destination = "/home/coder"
}
resources {
cores = ${cores}
memory = ${memory_mb}
}
env {
CODER_AGENT_TOKEN = "${coder_agent_token}"
}
meta {
tag = "${workspace_tag}"
managed_by = "coder"
}
}
meta {
tag = "${workspace_tag}"
managed_by = "coder"
}
}
meta {
tag = "${workspace_tag}"
managed_by = "coder"
}
}
job "workspace" {
datacenters = ["dc1"]
namespace = "${workspace_tag}"
type = "service"
group "workspace" {
volume "home_volume" {
type = "csi"
source = "${home_volume_name}"
read_only = false
attachment_mode = "file-system"
access_mode = "single-node-writer"
}
network {
port "http" {}
}
task "workspace" {
driver = "docker"
config {
image = "codercom/enterprise-base:ubuntu"
ports = ["http"]
labels {
name = "${workspace_tag}"
managed_by = "coder"
}
hostname = "${workspace_name}"
entrypoint = ["sh", "-c", "sudo chown coder:coder -R /home/coder && echo '${base64encode(coder_init_script)}' | base64 --decode | sh"]
}
volume_mount {
volume = "home_volume"
destination = "/home/coder"
}
resources {
cores = ${cores}
memory = ${memory_mb}
}
env {
CODER_AGENT_TOKEN = "${coder_agent_token}"
}
meta {
tag = "${workspace_tag}"
managed_by = "coder"
}
}
meta {
tag = "${workspace_tag}"
managed_by = "coder"
}
}
meta {
tag = "${workspace_tag}"
managed_by = "coder"
}
}
5 replies
CCoder.com
Created by houkai_3rd on 8/31/2024 in #help
Is there a way to set memory and storage limits?
Error: Unable to create volume: Error response from daemon: create coder-592d0646-e3d1-429f-a922-17760c5d3aee-home: quota size requested but no quota support
on main.tf line 140, in resource "docker_volume" "home_volume":
140: resource "docker_volume" "home_volume" {
Error: Unable to create volume: Error response from daemon: create coder-592d0646-e3d1-429f-a922-17760c5d3aee-home: quota size requested but no quota support
on main.tf line 140, in resource "docker_volume" "home_volume":
140: resource "docker_volume" "home_volume" {
16 replies
CCoder.com
Created by houkai_3rd on 8/31/2024 in #help
Is there a way to set memory and storage limits?
16 replies
CCoder.com
Created by houkai_3rd on 8/31/2024 in #help
Is there a way to set memory and storage limits?
Error: volume cannot be created: Error response from daemon: create coder-b469eca5-c6b3-4a58-aaf0-aee723cf3616-home: quota size requested, quota not supported.
main.tf line 140, in resource “docker_volume” “home_volume”:
140: resource “docker_volume” “home_volume”
Error: volume cannot be created: Error response from daemon: create coder-b469eca5-c6b3-4a58-aaf0-aee723cf3616-home: quota size requested, quota not supported.
main.tf line 140, in resource “docker_volume” “home_volume”:
140: resource “docker_volume” “home_volume”
The following will be displayed
16 replies
CCoder.com
Created by houkai_3rd on 8/31/2024 in #help
Is there a way to set memory and storage limits?
Is there a way to limit memory capacity? memory = 4096 is not working
16 replies
CCoder.com
Created by Multigestern on 8/27/2024 in #help
Keycloak OpenID Connect does not work
:dogelaugh:
21 replies
CCoder.com
Created by houkai_3rd on 8/31/2024 in #help
Is there a way to set memory and storage limits?
No description
16 replies