Skip to content

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 14, 2024
Merged
Changes from all 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 deletions examples/templates/envbox/main.tf
Original file line number Diff line number Diff 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 | tee code-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 | tee code-server-install.log &
/tmp/code-server/bin/code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 &
EOT
}

Expand Down Expand 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