File tree 14 files changed +40
-57
lines changed
.github/pr-deployments/template
templates/scaletest-runner
14 files changed +40
-57
lines changed Original file line number Diff line number Diff line change @@ -88,10 +88,9 @@ provider "kubernetes" {
88
88
data "coder_workspace" "me" {}
89
89
90
90
resource "coder_agent" "main" {
91
- os = " linux"
92
- arch = " amd64"
93
- startup_script_timeout = 180
94
- startup_script = <<- EOT
91
+ os = " linux"
92
+ arch = " amd64"
93
+ startup_script = <<- EOT
95
94
set -e
96
95
97
96
# install and start code-server
Original file line number Diff line number Diff line change @@ -259,8 +259,7 @@ resource "coder_agent" "dev" {
259
259
timeout = 5
260
260
}
261
261
262
- startup_script_timeout = 60
263
- startup_script = <<- EOT
262
+ startup_script = <<- EOT
264
263
set -eux -o pipefail
265
264
266
265
# Allow synchronization between scripts.
Original file line number Diff line number Diff line change @@ -59,10 +59,9 @@ resource "artifactory_scoped_token" "me" {
59
59
}
60
60
61
61
resource "coder_agent" "main" {
62
- arch = data. coder_provisioner . me . arch
63
- os = " linux"
64
- startup_script_timeout = 180
65
- startup_script = <<- EOT
62
+ arch = data. coder_provisioner . me . arch
63
+ os = " linux"
64
+ startup_script = <<- EOT
66
65
set -e
67
66
68
67
# install and start code-server
Original file line number Diff line number Diff line change @@ -23,10 +23,9 @@ data "coder_workspace" "me" {
23
23
}
24
24
25
25
resource "coder_agent" "main" {
26
- arch = data. coder_provisioner . me . arch
27
- os = " linux"
28
- startup_script_timeout = 180
29
- startup_script = <<- EOT
26
+ arch = data. coder_provisioner . me . arch
27
+ os = " linux"
28
+ startup_script = <<- EOT
30
29
set -e
31
30
32
31
# install and start code-server
Original file line number Diff line number Diff line change @@ -157,12 +157,11 @@ data "aws_ami" "ubuntu" {
157
157
}
158
158
159
159
resource "coder_agent" "dev" {
160
- count = data. coder_workspace . me . start_count
161
- arch = " amd64"
162
- auth = " aws-instance-identity"
163
- os = " linux"
164
- startup_script_timeout = 180
165
- startup_script = <<- EOT
160
+ count = data. coder_workspace . me . start_count
161
+ arch = " amd64"
162
+ auth = " aws-instance-identity"
163
+ os = " linux"
164
+ startup_script = <<- EOT
166
165
set -e
167
166
168
167
# install and start code-server
Original file line number Diff line number Diff line change @@ -19,17 +19,16 @@ data "coder_workspace" "me" {
19
19
}
20
20
21
21
resource "coder_agent" "main" {
22
- arch = data. coder_provisioner . me . arch
23
- os = " linux"
24
- startup_script_timeout = 180
25
- startup_script = <<- EOT
22
+ arch = data. coder_provisioner . me . arch
23
+ os = " linux"
24
+ startup_script = <<- EOT
26
25
set -e
27
26
28
27
# install and start code-server
29
28
curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server --version 4.11.0
30
29
/tmp/code-server/bin/code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 &
31
30
EOT
32
- dir = " /worskpaces"
31
+ dir = " /worskpaces"
33
32
34
33
# These environment variables allow you to make Git commits right away after creating a
35
34
# workspace. Note that they take precedence over configuration defined in ~/.gitconfig!
Original file line number Diff line number Diff line change @@ -44,17 +44,16 @@ data "coder_workspace" "me" {
44
44
}
45
45
46
46
resource "coder_agent" "main" {
47
- arch = data. coder_provisioner . me . arch
48
- os = " linux"
49
- startup_script_timeout = 180
50
- startup_script = <<- EOT
47
+ arch = data. coder_provisioner . me . arch
48
+ os = " linux"
49
+ startup_script = <<- EOT
51
50
set -e
52
51
53
52
# install and start code-server
54
53
curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server --version 4.11.0
55
54
/tmp/code-server/bin/code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 &
56
55
EOT
57
- dir = " /workspaces"
56
+ dir = " /workspaces"
58
57
59
58
# These environment variables allow you to make Git commits right away after creating a
60
59
# workspace. Note that they take precedence over configuration defined in ~/.gitconfig!
Original file line number Diff line number Diff line change @@ -23,10 +23,9 @@ data "coder_workspace" "me" {
23
23
}
24
24
25
25
resource "coder_agent" "main" {
26
- arch = data. coder_provisioner . me . arch
27
- os = " linux"
28
- startup_script_timeout = 180
29
- startup_script = <<- EOT
26
+ arch = data. coder_provisioner . me . arch
27
+ os = " linux"
28
+ startup_script = <<- EOT
30
29
set -e
31
30
32
31
# install and start code-server
Original file line number Diff line number Diff line change @@ -73,11 +73,10 @@ resource "google_compute_disk" "root" {
73
73
}
74
74
75
75
resource "coder_agent" "main" {
76
- auth = " google-instance-identity"
77
- arch = " amd64"
78
- os = " linux"
79
- startup_script_timeout = 180
80
- startup_script = <<- EOT
76
+ auth = " google-instance-identity"
77
+ arch = " amd64"
78
+ os = " linux"
79
+ startup_script = <<- EOT
81
80
set -e
82
81
83
82
# install and start code-server
Original file line number Diff line number Diff line change @@ -63,12 +63,10 @@ data "coder_workspace" "me" {
63
63
}
64
64
65
65
resource "coder_agent" "main" {
66
- auth = " google-instance-identity"
67
- arch = " amd64"
68
- os = " linux"
69
-
70
- startup_script_timeout = 180
71
- startup_script = <<- EOT
66
+ auth = " google-instance-identity"
67
+ arch = " amd64"
68
+ os = " linux"
69
+ startup_script = <<- EOT
72
70
set -e
73
71
74
72
# install and start code-server
Original file line number Diff line number Diff line change @@ -103,10 +103,9 @@ provider "kubernetes" {
103
103
data "coder_workspace" "me" {}
104
104
105
105
resource "coder_agent" "main" {
106
- os = " linux"
107
- arch = " amd64"
108
- startup_script_timeout = 180
109
- startup_script = <<- EOT
106
+ os = " linux"
107
+ arch = " amd64"
108
+ startup_script = <<- EOT
110
109
set -e
111
110
112
111
# install and start code-server
Original file line number Diff line number Diff line change @@ -88,10 +88,9 @@ data "coder_parameter" "memory" {
88
88
data "coder_workspace" "me" {}
89
89
90
90
resource "coder_agent" "main" {
91
- os = " linux"
92
- arch = " amd64"
93
- startup_script_timeout = 180
94
- startup_script = <<- EOT
91
+ os = " linux"
92
+ arch = " amd64"
93
+ startup_script = <<- EOT
95
94
set -e
96
95
# install and start code-server
97
96
curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server
Original file line number Diff line number Diff line change @@ -625,8 +625,6 @@ resource "coder_agent" "main" {
625
625
vscode = false
626
626
ssh_helper = false
627
627
}
628
- startup_script_timeout = 86400
629
- shutdown_script_timeout = 7200
630
628
startup_script_behavior = " blocking"
631
629
startup_script = file (" startup.sh" )
632
630
shutdown_script = file (" shutdown.sh" )
Original file line number Diff line number Diff line change @@ -304,8 +304,6 @@ resource "local_file" "kubernetes_template" {
304
304
resource "coder_agent" "main" {
305
305
os = "linux"
306
306
arch = "amd64"
307
- startup_script_timeout = 180
308
- startup_script = ""
309
307
}
310
308
311
309
resource "kubernetes_pod" "main" {
You can’t perform that action at this time.
0 commit comments