This repository has been archived on 2026-01-10. You can view files and clone it, but cannot push or open issues or pull requests.
coder-templates/patchfox_playground.tf.j2
Steve McMaster 44396707b5
All checks were successful
continuous-integration/drone/push Build is passing
Switch patchfox playground to dind
2024-10-22 21:05:59 -04:00

73 lines
1.8 KiB
Django/Jinja

{% extends "_lang.tf.j2" %}
{% block coder_apps %}
resource "coder_app" "adminer" {
agent_id = coder_agent.main.id
display_name = "Adminer"
slug = "adminer"
icon = "/icon/database.svg"
url = "http://localhost:8080/"
subdomain = true
share = "public"
healthcheck {
url = "http://localhost:8080/"
interval = 3
threshold = 10
}
}
{{ super() }}
{% endblock %}
{% block kubernetes_pod_main_volume_mount %}
volume_mount {
mount_path = "{{ coder_user_home }}"
name = "home"
sub_path = "dev"
read_only = false
}
{% endblock %}
{% block additional_containers %}
container {
name = "dind"
image = "docker:dind"
image_pull_policy = "{{ image_pull_policy }}"
security_context {
privileged = true
run_as_user = 0
}
command = [
"dockerd",
"--host=tcp://0.0.0.0:2375",
"--host=unix:///var/run/docker.sock",
"--mtu=1450",
"--registry-mirror=http://docker-cache.cicd.svc.cluster.local:5000"
]
env {
name = "DOCKER_HOST"
value = "tcp://localhost:2375"
}
resources {
requests = {
"cpu" = "500m"
"memory" = "512Mi"
}
limits = {
"cpu" = "1000m"
"memory" = "1024Mi"
}
}
volume_mount {
mount_path = "/var/lib/docker"
name = "home"
sub_path = "docker"
read_only = false
}
}
{% endblock %}