forked from devcontainers/features
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevcontainer-feature.json
More file actions
65 lines (65 loc) · 2.23 KB
/
Copy pathdevcontainer-feature.json
File metadata and controls
65 lines (65 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
"id": "powershell",
"version": "2.0.3",
"name": "PowerShell",
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/powershell",
"description": "Installs PowerShell along with needed dependencies. Useful for base Dockerfiles that often are missing required install dependencies like gpg.",
"options": {
"version": {
"type": "string",
"proposals": [
"latest",
"lts",
"preview",
"stable",
"none",
"7.5",
"7.4"
],
"default": "latest",
"description": "Select or enter a version of PowerShell."
},
"modules": {
"type": "string",
"default": "",
"description": "Optional comma separated list of PowerShell modules to install. If you need to install a specific version of a module, use '==' to specify the version (e.g. 'az.resources==2.5.0')."
},
"powershellProfileURL": {
"type": "string",
"default": "",
"description": "Optional (publicly accessible) URL to download PowerShell profile."
},
"preserveHistory": {
"type": "boolean",
"default": true,
"description": "Optional Enable to preserve the powershell history across container restart/rebuilds"
}
},
"customizations": {
"vscode": {
"extensions": [
"ms-vscode.powershell"
]
},
"settings": {
"github.copilot.chat.codeGeneration.instructions": [
{
"text": "This dev container includes PowerShell along with needed dependencies pre-installed and available on the `PATH`, along with the PowerShell extension."
}
]
}
},
"mounts": [
{
"type": "volume",
"source": "${devcontainerId}-powershell-history",
"target": "/dc/powershell"
}
],
"onCreateCommand": {
"powershell": "/usr/local/share/powershell/scripts/oncreate.sh"
},
"installsAfter": [
"ghcr.io/devcontainers/features/common-utils"
]
}