Commit c7db13c
authored
configure-time view variable templating (#282)
Configure time string substitution of mount and view information for
environment variables defined in the `env:views:view:env_vars` field.
Substition of a `key` is performed for templates of the form `$@key@`,
e.g.:
```yaml
cuda-env:
views:
env_vars:
set:
- ACTIVATE: "$@mount@/activate.sh"
```
The following keys are supported, with examples:
```
mount. /user-environment
view_name cuda-env
view_path /user-environment/env/cuda-env
```1 parent 9f305a4 commit c7db13c
File tree
4 files changed
+57
-6
lines changed- bin
- docs
- stackinator
4 files changed
+57
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
2 | 10 | | |
3 | | - | |
| 11 | + | |
| 12 | + | |
4 | 13 | | |
5 | | - | |
6 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
408 | | - | |
| 408 | + | |
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
414 | 426 | | |
415 | 427 | | |
416 | 428 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
295 | 311 | | |
296 | 312 | | |
297 | 313 | | |
| |||
302 | 318 | | |
303 | 319 | | |
304 | 320 | | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
305 | 324 | | |
306 | 325 | | |
307 | 326 | | |
| |||
313 | 332 | | |
314 | 333 | | |
315 | 334 | | |
| 335 | + | |
| 336 | + | |
316 | 337 | | |
317 | 338 | | |
318 | 339 | | |
319 | 340 | | |
320 | 341 | | |
321 | 342 | | |
| 343 | + | |
| 344 | + | |
322 | 345 | | |
323 | 346 | | |
324 | 347 | | |
325 | 348 | | |
326 | 349 | | |
327 | 350 | | |
328 | 351 | | |
329 | | - | |
330 | 352 | | |
331 | 353 | | |
332 | 354 | | |
| |||
0 commit comments