|
1 | 1 | { |
2 | | - "name": "{{ModuleName}} DevContainer", |
3 | | - "build": { |
4 | | - "dockerfile": "Dockerfile", |
5 | | - "context": ".." |
| 2 | + "name": "PowerShell Claude Code", |
| 3 | + "dockerComposeFile": "docker-compose.yml", |
| 4 | + "service": "devcontainer", |
| 5 | + "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", |
| 6 | + "initializeCommand": "pwsh -NoProfile -File .devcontainer/setup-host.ps1", |
| 7 | + "features": { |
| 8 | + "ghcr.io/devcontainers/features/common-utils:2": { |
| 9 | + "installZsh": false, |
| 10 | + "installOhMyZsh": false, |
| 11 | + "username": "vscode", |
| 12 | + "userUid": "automatic", |
| 13 | + "userGid": "automatic" |
| 14 | + }, |
| 15 | + "ghcr.io/devcontainers/features/github-cli:1": {}, |
| 16 | + "ghcr.io/anthropics/devcontainer-features/claude-code:1": {} |
6 | 17 | }, |
7 | 18 | "remoteUser": "vscode", |
8 | | - "containerEnv": { |
9 | | - "DEVCONTAINER": "true" |
10 | | - }, |
11 | | - "mounts": [ |
12 | | - "source={{ModuleNameLower}}-pwsh-modules,target=/home/vscode/.local/share/powershell/Modules,type=volume", |
13 | | - "source={{ModuleNameLower}}-pwsh-history,target=/home/vscode/.local/share/powershell/PSReadLine,type=volume" |
14 | | - ], |
15 | | - "postCreateCommand": "pwsh ./build.ps1 -Task Init -Bootstrap", |
| 19 | + "postCreateCommand": "git config --global --add safe.directory ${containerWorkspaceFolder} && pwsh ./build.ps1 -Task Init -Bootstrap", |
16 | 20 | "customizations": { |
17 | 21 | "vscode": { |
18 | 22 | "extensions": [ |
19 | | - "ms-vscode.powershell", |
20 | | - "anthropic.claude-code" |
| 23 | + "ms-vscode.powershell" |
21 | 24 | ], |
22 | 25 | "settings": { |
23 | | - "powershell.codeFormatting.preset": "OTBS", |
24 | | - "powershell.scriptAnalysis.settingsPath": "./PSScriptAnalyzerSettings.psd1", |
25 | 26 | "terminal.integrated.defaultProfile.linux": "pwsh", |
26 | | - "terminal.integrated.profiles.linux": { |
27 | | - "pwsh": { |
28 | | - "path": "/usr/bin/pwsh", |
29 | | - "icon": "terminal-powershell" |
30 | | - }, |
31 | | - "bash": { |
32 | | - "path": "/bin/bash", |
33 | | - "icon": "terminal-bash" |
34 | | - } |
35 | | - } |
| 27 | + "powershell.scriptAnalysis.settingsPath": "PSScriptAnalyzerSettings.psd1" |
36 | 28 | } |
37 | 29 | } |
38 | 30 | } |
|
0 commit comments