mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
Add the bundled `exampleID -> OS` Go map for Docker, Kubernetes, and AWS
EC2 Linux base templates. Create `.tf.tmpl` Go template files for each
within `coderd/templatebuilder/bases/`, along with `BaseRenderContext`
and `RenderBaseTemplate` rendering helpers.
The `.tf.tmpl` files are independent copies of the example templates
with module blocks (code-server, jetbrains) removed, since the template
builder composes modules separately into `modules.tf`. When
`ImageOptions` is provided, the container image field references the
Terraform parameter; otherwise it uses the hardcoded value via Go
template whitespace control (`{{-`).
Golden file snapshot tests verify rendered output stability with an
`-update` flag for regeneration.
Depends on #25909
> [!NOTE]
> This PR was authored by Coder Agents on behalf of @jeremyruppel.
9 lines
144 B
JSON
9 lines
144 B
JSON
{
|
|
"id": "docker",
|
|
"display_name": "Docker",
|
|
"os": "linux",
|
|
"default_context": {
|
|
"container_image": "codercom/enterprise-base:ubuntu"
|
|
}
|
|
}
|