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/python.tf.jinja
Steve McMaster e8f5a5748f
All checks were successful
continuous-integration/drone/push Build is passing
fix
2023-08-05 01:12:55 -04:00

44 lines
964 B
Django/Jinja

{% extends "base.tf.jinja" %}
{% block parameters %}
{{ super() }}
data "coder_parameter" "python_version" {
name = "Python Version"
description = "Python Version"
type = "string"
default = ""
mutable = true
option {
name = "Latest"
value = ""
}
{% for version in python_versions.split(",") %}
option {
name = "{{ version }}"
value = "-{{ version }}"
}
{% endfor %}
}
data "coder_parameter" "container_base" {
name = "Container Base"
description = "Container Base"
type = "string"
default = ""
mutable = false
option {
name = "Debian Buster"
value = ""
}
option {
name = "Alpine {{ alpine_version }}"
value = "-alpine{{ alpine_version }}"
}
}
{% endblock %}
{% block kubernetes_pod_main_image %}
image = "{{image}}${data.coder_parameter.python_version.value}${data.coder_parameter.container_base.value}:latest"
{% endblock %}