-
Notifications
You must be signed in to change notification settings - Fork 399
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add `devcontainer.json` and `Dockerfile` with all dependencies necessary to build and test the module, and work on docs with local web server provided by mkdocs. - Install platyPS during build if module not available in a local or CI build.
- Loading branch information
Showing
3 changed files
with
52 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM mcr.microsoft.com/powershell:lts-debian-11 | ||
|
||
SHELL [ "pwsh", "-NoLogo", "-NoProfile", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; " ] | ||
RUN apt update && apt install -y --no-install-recommends libc6-dev python3-pip mkdocs; \ | ||
pip install mkdocs-material mkdocs-awesome-pages-plugin -q --no-input; \ | ||
Install-Module Pester -RequiredVersion 5.5.0 -Force; \ | ||
Install-Module psake -RequiredVersion 4.9.0 -Force; \ | ||
Install-Module PSReadLine -RequiredVersion 2.3.4 -Force; \ | ||
Install-Module PSScriptAnalyzer -RequiredVersion 1.21.0 -Force; \ | ||
Install-Module platyPS -RequiredVersion 0.14.2 -Force; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "PowerShell", | ||
"dockerFile": "Dockerfile", | ||
"features": { | ||
"ghcr.io/devcontainers/features/common-utils:2": { | ||
"installZsh": "true", | ||
"username": "vscode", | ||
"upgradePackages": "false", | ||
"nonFreePackages": "true" | ||
} | ||
}, | ||
"postCreateCommand": "sudo chsh vscode -s \"$(which pwsh)\"", | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"powershell.powerShellDefaultVersion": "PowerShell", | ||
"terminal.integrated.defaultProfile.linux": "pwsh" | ||
}, | ||
"extensions": [ | ||
"ms-vscode.powershell", | ||
"redhat.vscode-yaml", | ||
"eamodio.gitlens" | ||
] | ||
} | ||
}, | ||
"forwardPorts": [8000] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters