Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore(dogfood): add back coder envbuilder template#20576

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ethanndickson merged 1 commit intomainfromethan/add-back-envbuilder-template
Oct 30, 2025
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 51 additions & 47 deletionsdogfood/main.tf
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,6 +9,11 @@ terraform {
}
}

import {
to = coderd_template.envbuilder_dogfood
id = "e75f1212-834c-4183-8bed-d6817cac60a5"
}

data "coderd_organization" "default" {
is_default = true
}
Expand DownExpand Up@@ -87,50 +92,49 @@ resource "coderd_template" "dogfood" {
time_til_dormant_ms = 8640000000
}

# Disabled for now until we restore the deleted template.
# My bad - Dean
#resource "coderd_template" "envbuilder_dogfood" {
# name = "coder-envbuilder"
# display_name = "Write Coder on Coder using Envbuilder"
# description = "Write Coder on Coder using a workspace built by Envbuilder."
# icon = "/emojis/1f3d7.png" # 🏗️
# organization_id = data.coderd_organization.default.id
# versions = [
# {
# name = var.CODER_TEMPLATE_VERSION
# message = var.CODER_TEMPLATE_MESSAGE
# directory = "./coder-envbuilder"
# active = true
# tf_vars = [{
# # clusters/dogfood-v2/coder/provisioner/configs/values.yaml#L191-L194
# name = "envbuilder_cache_dockerconfigjson_path"
# value = "/home/coder/envbuilder-cache-dockerconfig.json"
# }]
# }
# ]
# acl = {
# groups = [{
# id = data.coderd_organization.default.id
# role = "use"
# }]
# users = [{
# id = data.coderd_user.machine.id
# role = "admin"
# }]
# }
# activity_bump_ms = 10800000
# allow_user_auto_start = true
# allow_user_auto_stop = true
# allow_user_cancel_workspace_jobs = false
# auto_start_permitted_days_of_week = ["friday", "monday", "saturday", "sunday", "thursday", "tuesday", "wednesday"]
# auto_stop_requirement = {
# days_of_week = ["sunday"]
# weeks = 1
# }
# default_ttl_ms = 28800000
# deprecation_message = null
# failure_ttl_ms = 604800000
# require_active_version = true
# time_til_dormant_autodelete_ms = 7776000000
# time_til_dormant_ms = 8640000000
#}

resource "coderd_template" "envbuilder_dogfood" {
name = "coder-envbuilder"
display_name = "Write Coder on Coder using Envbuilder"
description = "Write Coder on Coder using a workspace built by Envbuilder."
icon = "/emojis/1f3d7.png" # 🏗️
organization_id = data.coderd_organization.default.id
versions = [
{
name = var.CODER_TEMPLATE_VERSION
message = var.CODER_TEMPLATE_MESSAGE
directory = "./coder-envbuilder"
active = true
tf_vars = [{
# clusters/dogfood-v2/coder/provisioner/configs/values.yaml#L191-L194
name = "envbuilder_cache_dockerconfigjson_path"
value = "/home/coder/envbuilder-cache-dockerconfig.json"
}]
}
]
acl = {
groups = [{
id = data.coderd_organization.default.id
role = "use"
}]
users = [{
id = data.coderd_user.machine.id
role = "admin"
}]
}
activity_bump_ms = 10800000
allow_user_auto_start = true
allow_user_auto_stop = true
allow_user_cancel_workspace_jobs = false
auto_start_permitted_days_of_week = ["friday", "monday", "saturday", "sunday", "thursday", "tuesday", "wednesday"]
auto_stop_requirement = {
days_of_week = ["sunday"]
weeks = 1
}
default_ttl_ms = 28800000
deprecation_message = null
failure_ttl_ms = 604800000
require_active_version = true
time_til_dormant_autodelete_ms = 7776000000
time_til_dormant_ms = 8640000000
}
Loading

[8]ページ先頭

©2009-2025 Movatter.jp