Skip to content

Commit be00ac2

Browse files
gautamdshethGautam Sheth
andauthored
Feature #2683 : added support for containers (#3497)
* Feature #2683 : added support for containers * Improved container image * Added gitlens * Improve image * Improve container process --------- Co-authored-by: Gautam Sheth <gautam.sheth@staffbase.com>
1 parent 9e27e53 commit be00ac2

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "PnP PowerShell",
3+
"image": "mcr.microsoft.com/devcontainers/dotnet:0-6.0",
4+
"features": {
5+
"ghcr.io/devcontainers/features/git:1": {
6+
"ppa": true,
7+
"version": "os-provided"
8+
},
9+
"ghcr.io/devcontainers/features/powershell:1": {
10+
"version": "latest"
11+
}
12+
},
13+
"workspaceFolder": "/workspaces/powershell",
14+
"postCreateCommand": "bash ./build/postCreateCommand.sh",
15+
"customizations": {
16+
"vscode": {
17+
"settings": {
18+
"terminal.integrated.defaultProfile.linux": "pwsh"
19+
},
20+
"extensions": [
21+
"ms-vscode.powershell",
22+
"ms-dotnettools.csdevkit",
23+
"ms-vsliveshare.vsliveshare",
24+
"shd101wyy.markdown-preview-enhanced",
25+
"GitHub.copilot",
26+
"GitHub.copilot-chat",
27+
"eamodio.gitlens",
28+
"github.vscode-pull-request-github"
29+
]
30+
}
31+
},
32+
"remoteUser": "root",
33+
"shutdownAction": "stopCompose"
34+
}

build/postCreateCommand.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Build the project
2+
/usr/bin/pwsh -c '/workspaces/powershell/build/Build-Debug.ps1'
3+
4+
# Install optional modules
5+
/usr/bin/pwsh -c 'Install-Module Microsoft.PowerShell.SecretStore,Microsoft.Powershell.SecretManagement -Force'

0 commit comments

Comments
 (0)