- Notifications
You must be signed in to change notification settings - Fork927
Commit02daadd
committed
feat(agent): add script data dir for binaries and files
The agent is extended with a `--script-data-dir` flag, defaulting to theOS temp dir. This dir is used for storing `coder-script/bin` and`coder-script/[script uuid]`. The former is a place for all scripts toplace executable binaries that will be available by other scripts, SSHsessions, etc. The latter is a place for the script to store files.Since we default to OS temp dir, files are ephemeral by default. In thefuture, we may consider adding new env vars or changing the defaultstorage location. Workspace startup speed could potentially benefit fromscripts being able to skip steps that require downloading software. Wemay also extend this with more env variables (e.g. persistent storage inHOME).Fixes#111311 parent2fe0a69 commit02daadd
File tree
4 files changed
+68
-1
lines changed- agent
- agentscripts
- cli
4 files changed
+68
-1
lines changedLines changed: 17 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
66 | 66 |
| |
67 | 67 |
| |
68 | 68 |
| |
| 69 | + | |
69 | 70 |
| |
70 | 71 |
| |
71 | 72 |
| |
| |||
115 | 116 |
| |
116 | 117 |
| |
117 | 118 |
| |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
118 | 125 |
| |
119 | 126 |
| |
120 | 127 |
| |
| |||
152 | 159 |
| |
153 | 160 |
| |
154 | 161 |
| |
| 162 | + | |
155 | 163 |
| |
156 | 164 |
| |
157 | 165 |
| |
| |||
182 | 190 |
| |
183 | 191 |
| |
184 | 192 |
| |
| 193 | + | |
185 | 194 |
| |
186 | 195 |
| |
187 | 196 |
| |
| |||
249 | 258 |
| |
250 | 259 |
| |
251 | 260 |
| |
| 261 | + | |
252 | 262 |
| |
253 | 263 |
| |
254 | 264 |
| |
| |||
953 | 963 |
| |
954 | 964 |
| |
955 | 965 |
| |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
956 | 973 |
| |
957 | 974 |
| |
958 | 975 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
285 | 285 |
| |
286 | 286 |
| |
287 | 287 |
| |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
288 | 293 |
| |
289 | 294 |
| |
290 | 295 |
| |
| |||
293 | 298 |
| |
294 | 299 |
| |
295 | 300 |
| |
| 301 | + | |
296 | 302 |
| |
| 303 | + | |
| 304 | + | |
297 | 305 |
| |
298 | 306 |
| |
299 | 307 |
| |
| |||
335 | 343 |
| |
336 | 344 |
| |
337 | 345 |
| |
| 346 | + | |
338 | 347 |
| |
339 | 348 |
| |
340 | 349 |
| |
|
Lines changed: 33 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
| 46 | + | |
46 | 47 |
| |
47 | 48 |
| |
48 | 49 |
| |
| |||
59 | 60 |
| |
60 | 61 |
| |
61 | 62 |
| |
| 63 | + | |
62 | 64 |
| |
63 | 65 |
| |
64 | 66 |
| |
| |||
78 | 80 |
| |
79 | 81 |
| |
80 | 82 |
| |
| 83 | + | |
81 | 84 |
| |
82 | 85 |
| |
83 | 86 |
| |
84 | 87 |
| |
85 | 88 |
| |
86 | 89 |
| |
87 | 90 |
| |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
88 | 97 |
| |
89 | 98 |
| |
90 | 99 |
| |
| |||
104 | 113 |
| |
105 | 114 |
| |
106 | 115 |
| |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
107 | 121 |
| |
108 | 122 |
| |
109 | 123 |
| |
| |||
208 | 222 |
| |
209 | 223 |
| |
210 | 224 |
| |
211 |
| - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
212 | 237 |
| |
213 | 238 |
| |
214 | 239 |
| |
| |||
238 | 263 |
| |
239 | 264 |
| |
240 | 265 |
| |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
241 | 273 |
| |
242 | 274 |
| |
243 | 275 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
| 43 | + | |
43 | 44 |
| |
44 | 45 |
| |
45 | 46 |
| |
| |||
289 | 290 |
| |
290 | 291 |
| |
291 | 292 |
| |
| 293 | + | |
292 | 294 |
| |
293 | 295 |
| |
294 | 296 |
| |
| |||
339 | 341 |
| |
340 | 342 |
| |
341 | 343 |
| |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
342 | 351 |
| |
343 | 352 |
| |
344 | 353 |
| |
|
0 commit comments
Comments
(0)