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: research/3-desktopus-image-spec/README.md
+14-22
Original file line number
Diff line number
Diff line change
@@ -28,25 +28,23 @@ The `parameters` section defines a list of configurable parameters that can be u
28
28
#### Example Parameters:
29
29
30
30
```yaml
31
-
parameters:
32
-
- name: username
31
+
envs:
32
+
- name: USERNAME
33
33
type: string
34
-
description: The username for the user account.
35
34
default: user
36
-
- name: password
35
+
- name: PASSWORD
37
36
type: string
38
-
description: The password for the user account.
39
37
default: password
40
-
- name: font
38
+
- name: VSCODE_FONT
41
39
type: string
42
-
description: The font family to use in the VS Code editor.
43
40
default: Fira Code
44
-
- name: fontSize
41
+
- name: VSCODE_FONT_SIZE
45
42
type: number
46
-
description: The font size to use in the VS Code editor.
47
-
required: true
43
+
default: 14
48
44
```
49
45
46
+
The environment variables defined in the `envs` section are resolved on startup and checked, so the container can't start if they are not defined or values are not valid.
47
+
50
48
### Modules
51
49
52
50
The `modules` section lists the software modules to be installed. Each module is specified by its name.
@@ -103,12 +101,9 @@ files:
103
101
104
102
#### Startup Script
105
103
106
-
The `startup_script` subsection specifies a script to be executed at startup. The script can include commands to install software or configure the environment.
104
+
The `startup_script` subsection specifies a script to be executed at startup. The script can include commands to install software or configure the environment. Executes by default as root to allow for system-wide changes.
107
105
108
106
- **content**: The script content.
109
-
- **mode**: File permissions (e.g., `0755`).
110
-
- **owner**: Owner of the script file.
111
-
- **group**: Group of the script file.
112
107
113
108
##### Example Startup Script:
114
109
@@ -134,17 +129,17 @@ Below is a complete example of a Desktopus configuration file:
0 commit comments