You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/software/uenv/configure.md
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,22 +2,22 @@
2
2
# Configuring uenv
3
3
4
4
Uenv is designed to work out of the box, with zero configuration for most users.
5
+
There is support for limited per-user configuration via a configuration file, which will be expanded as we add features that make it easier for groups and communities to manage their own environments.
5
6
6
7
## User configuration
7
8
8
9
Uenv is configured using a text configuration file.
9
10
10
-
### Location of the configuration file
11
-
12
11
The location of the configuration file follows the [XDG base directory specification](https://specifications.freedesktop.org/basedir-spec/latest/).
12
+
13
13
* If the `XDG_CONFIG_HOME` environment variable is set, the `$XDG_CONFIG_HOME/uenv/config`.
14
14
* Otherwise it defaults to `$HOME/.config/uenv/config`.
15
15
16
16
### Syntax
17
17
18
-
A custom, but simple `key = value` syntax with comments marked with `#`
18
+
The configuration file uses a simple `key = value` syntax, with comments starting with `#`:
19
19
20
-
```
20
+
```ini
21
21
# this is a comment
22
22
23
23
# the following are equivalent
@@ -35,21 +35,25 @@ Notes on the syntax:
35
35
36
36
| key | description | default | values |
37
37
| --- | ----------- | -------- | ------ |
38
-
|`color`| Use color output | automatically chosen according to TTY|`true`, `false`|
39
-
|`repo`| The default repo location for downloaded uenv images |`$SCRATCH/.uenv-images`| An absolute path |
38
+
|[`color`][ref-uenv-configure-options-color]| Use color output | automatically chosen according to environment|`true`, `false`|
39
+
|[`repo`][ref-uenv-configure-options-repo]| The default repo location for downloaded uenv images |`$SCRATCH/.uenv-images`| An absolute path |
40
40
41
+
[](){#ref-uenv-configure-options-color}
41
42
#### `color`
42
43
43
44
By default, uenv will generate color output according to the following:
45
+
44
46
* if `--no-color` is passed, color output is disabled
45
47
* else if `color` is set in the config file, use that setting
46
48
* else if the `NO_COLOR` environment variable is defined color output is disabled
47
49
* else if the terminal is not TTY disable color
48
50
* else enable color output
49
51
52
+
[](){#ref-uenv-configure-options-repo}
50
53
#### `repo`
51
54
52
-
The location of
55
+
The default repo location for downloaded uenv images.
56
+
The repo is selected according to the following process:
53
57
54
58
* if the `--repo` CLI arguement overrides
55
59
* else if `color` is set in the config file, use that setting
The uenv recipes are maintained in a public GitHub repository: [eth-cscs/alps-uenv](https://github.com/eth-cscs/alps-uenv).
@@ -88,25 +98,26 @@ The `cluster` is specified when building and deploying the uenv, while the `rele
88
98
### Deployment Rules
89
99
90
100
A recipe can be built for deployment on different vClusters, and for multiple targets.
101
+
For example:
91
102
92
-
??? example
93
-
94
-
* A multicore recipe could be built for `zen2` or `zen3` nodes
95
-
* A GROMACS recipe that is tuned for A100 GPUs can be built and deployed on any vCluster supporting the A100 architecture
103
+
* A multicore recipe could be built for `zen2` or `zen3` nodes
104
+
* A GROMACS recipe that is tuned for A100 GPUs can be built and deployed on any vCluster supporting the A100 architecture
96
105
97
106
However, it is not desirable to build every recipe on every possible target system.
107
+
For example:
98
108
99
-
??? example
100
-
101
-
* An ICON development environment would only be deployed on the weather and climate platform
102
-
* A GROMACS recipe would not be deployed on the weather and climate platrofm
103
-
* Development builds only need to run on test and staging clusters
109
+
* An ICON development environment would only be deployed on the weather and climate platform
110
+
* A GROMACS recipe would not be deployed on the weather and climate platrofm
111
+
* Development builds only need to run on test and staging clusters
104
112
105
-
A YAML file `config.yaml` is maintained in the [eth-cscs/alps-uenv](https://github.com/eth-cscs/alps-uenv) repository that maps
113
+
A YAML file `config.yaml` is maintained in the [github.com/eth-cscs/alps-uenv](https://github.com/eth-cscs/alps-uenv/blob/main/config.yaml) repository that maps
106
114
recipes to deployed versions on mucroarchitectures.
The CI/CD pipeline for [eth-cscs/alps-uenv](https://github.com/eth-cscs/alps-uenv) pushes images to the JFrog uenv registry in the `build::` namespace.
132
146
133
147
Deploying a uenv copies the uenv imagre from the `build::` namespace to the `deploy::` namespace. The Squashfs image itself is not copied;
0 commit comments