Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
// Use 'features' to install additional components in the container.
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"upgradePackages": "true",
"username": "vscode",
"upgradePackages": "true"
"userGid": "1001",
"userUid": "1001"
},
"ghcr.io/devcontainers/features/powershell:1": {
"version": "latest"
Expand All @@ -18,8 +20,6 @@
}
},

// "postCreateCommand": "sudo chsh vscode -s \"$(which pwsh)\"",

// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
Expand Down Expand Up @@ -70,8 +70,8 @@
}
},

// Run after container is created (one time only)
"postCreateCommand": "pwsh -NoProfile -Command 'Write-Host \"Container created. Installing dependencies...\"'",
// Run once when the container is created
"onCreateCommand": "pwsh -NoProfile -Command 'Install-PSResource -RequiredResourceFile /workspaces/PSScriptModule/requirements.json -AcceptLicense -TrustRepository -Verbose'",

// Run after container starts (each time)
"postStartCommand": "pwsh -NoProfile -Command 'Write-Host \"Container started.\"'",
Expand Down
35 changes: 25 additions & 10 deletions requirements.psd1
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
# PSDepend dependency specification
# See https://github.com/RamblingCookieMonster/PSDepend for more information
@{
# Build and test dependencies
'InvokeBuild' = @{ Version = '5.14.22'; Repository = 'PSGallery' }
'ModuleBuilder' = @{ Version = '3.1.8'; Repository = 'PSGallery' }
'Pester' = @{ Version = '5.7.1'; Repository = 'PSGallery' }
'PSScriptAnalyzer' = @{ Version = 'latest'; Repository = 'PSGallery' }
'InjectionHunter' = @{ Version = '1.0.0'; Repository = 'PSGallery' }
'Microsoft.PowerShell.PlatyPS' = @{ Version = '1.0.1'; Repository = 'PSGallery' }
}
'InvokeBuild' = @{
'Version' = '[5.14.22]'
'Repository' = 'PSGallery'
}
'ModuleBuilder' = @{
'Version' = '[3.1.8]'
'Repository' = 'PSGallery'
}
'Pester' = @{
'Version' = '[5.7.1]'
'Repository' = 'PSGallery'
}
'PSScriptAnalyzer' = @{
'Version' = '[1.24.0]'
'Repository' = 'PSGallery'
}
'InjectionHunter' = @{
'Version' = '[1.0.0]'
'Repository' = 'PSGallery'
}
'Microsoft.PowerShell.PlatyPS' = @{
'Version' = '[1.0.1]'
'Repository' = 'PSGallery'
}
}