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 7d74b5b72e
All checks were successful
continuous-integration/drone/push Build is passing
Remove adminer
2024-10-22 21:23:03 -04:00

56 lines
1.4 KiB
Django/Jinja

{% extends "_lang.tf.j2" %}
{% block kubernetes_pod_main_volume_mount %}
volume_mount {
mount_path = "{{ coder_user_home }}"
name = "home"
sub_path = "dev"
read_only = false
}
{% endblock %}
{% block kubernetes_pod_extra_env %}
env {
name = "DOCKER_HOST"
value = "tcp://localhost:2375"
}
{% 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"
]
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 %}