Skip to content

chore(examples): Add login_before_ready and startup_script_timeout #5880

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 13 commits into from
Jan 27, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update dogfood template
  • Loading branch information
mafredri committed Jan 26, 2023
commit f143255c45cc559c05508b3ca244d6727ea19a3e
13 changes: 8 additions & 5 deletions dogfood/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
coder = {
source = "coder/coder"
version = "0.6.0"
version = "0.6.9"
}
docker = {
source = "kreuzwerker/docker"
Expand Down Expand Up @@ -58,9 +58,12 @@ provider "coder" {}
data "coder_workspace" "me" {}

resource "coder_agent" "dev" {
arch = "amd64"
os = "linux"
startup_script = <<EOF
arch = "amd64"
os = "linux"

delay_login_until_ready = true
startup_script_timeout = 60
startup_script = <<-EOT
#!/bin/sh
set -x
# install and start code-server
Expand All @@ -77,7 +80,7 @@ resource "coder_agent" "dev" {
elif [ -f ~/personalize ]; then
echo "~/personalize is not executable, skipping..." | tee -a ~/.personalize.log
fi
EOF
EOT
}

resource "coder_app" "code-server" {
Expand Down