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: update envbox template image#14256

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
deansheather merged 3 commits intocoder:mainfromcjlarose:update-envbox-template
Aug 14, 2024
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
16 changes: 4 additions & 12 deletionsexamples/templates/envbox/main.tf
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -24,7 +24,6 @@ data "coder_parameter" "home_disk" {

variable "use_kubeconfig" {
type = bool
sensitive = true
default = true
description = <<-EOF
Use host kubeconfig? (true/false)
Expand All@@ -40,46 +39,39 @@ provider "coder" {

variable "namespace" {
type = string
sensitive = true
description = "The namespace to create workspaces in (must exist prior to creating workspaces)"
}

variable "create_tun" {
type = bool
sensitive = true
description = "Add a TUN device to the workspace."
default = false
}

variable "create_fuse" {
type = bool
description = "Add a FUSE device to the workspace."
sensitive = true
default = false
}

variable "max_cpus" {
type = string
sensitive = true
description = "Max number of CPUs the workspace may use (e.g. 2)."
}

variable "min_cpus" {
type = string
sensitive = true
description = "Minimum number of CPUs the workspace may use (e.g. .1)."
}

variable "max_memory" {
type = string
description = "Maximum amount of memory to allocate the workspace (in GB)."
sensitive = true
}

variable "min_memory" {
type = string
description = "Minimum amount of memory to allocate the workspace (in GB)."
sensitive = true
}

provider "kubernetes" {
Expand All@@ -104,11 +96,11 @@ resource "coder_agent" "main" {
fi

# Install the latest code-server.
# Append "-s -- --version x.x.x" to `sh` to install a specific version of code-server.
curl -fsSL https://code-server.dev/install.sh | sh| teecode-server-install.log
# Append "--version x.x.x" to install a specific version of code-server.
curl -fsSL https://code-server.dev/install.sh | sh-s -- --method=standalone --prefix=/tmp/code-server

# Start code-server in the background.
code-server --auth none --port 13337| teecode-server-install.log &
/tmp/code-server/bin/code-server --auth none --port 13337>/tmp/code-server.log 2>&1 &
EOT
}

Expand DownExpand Up@@ -191,7 +183,7 @@ resource "kubernetes_pod" "main" {

env {
name = "CODER_INNER_IMAGE"
value = "index.docker.io/codercom/enterprise-base@sha256:069e84783d134841cbb5007a16d9025b6aed67bc5b95eecc118eb96dccd6de68"
value = "index.docker.io/codercom/enterprise-base:ubuntu-20240812"
}

env {
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp