* Updates to codespaces

* Add file header
This commit is contained in:
Bernie White 2022-09-13 16:29:18 +10:00 коммит произвёл GitHub
Родитель 81c8d2779a
Коммит 7a032799ba
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 42 добавлений и 20 удалений

10
.devcontainer/Dockerfile Normal file
Просмотреть файл

@ -0,0 +1,10 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# Visual Studio Code image with .NET
# NOTE:
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/dotnet/.devcontainer/base.Dockerfile
ARG VARIANT="6.0-bullseye-slim"
FROM mcr.microsoft.com/vscode/devcontainers/dotnet:0-${VARIANT}

Просмотреть файл

@ -5,6 +5,7 @@
# This is run during container creation.
# Install Python 3 dependencies
sudo apt install python3-pip -y
sudo python3 -m pip install --upgrade pip
sudo python3 -m pip install wheel
@ -19,3 +20,6 @@ if ($Null -eq (Get-InstalledModule -Name PowerShellGet -MinimumVersion 2.2.1 -Er
if ($Null -eq (Get-InstalledModule -Name InvokeBuild -MinimumVersion 5.4.0 -ErrorAction Ignore)) {
Install-Module InvokeBuild -MinimumVersion 5.4.0 -Scope CurrentUser -Force;
}
Import-Module ./scripts/dependencies.psm1;
Install-Dependencies -Dev;

Просмотреть файл

@ -1,27 +1,35 @@
{
"name": "PSRule for Azure dev",
"settings": {
"$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json",
"name": "PSRule for Azure dev",
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.defaultProfile.linux": "pwsh",
"terminal.integrated.profiles.linux": {
"pwsh": {
"path": "/bin/pwsh"
}
"pwsh": {
"path": "/opt/microsoft/powershell/7/pwsh"
}
}
},
"extensions": [
"ms-azure-devops.azure-pipelines",
"davidanson.vscode-markdownlint",
},
"extensions": [
"ms-dotnettools.csharp",
"bewhite.psrule-vscode-preview",
"msazurermtools.azurerm-vscode-tools",
"ms-azuretools.vscode-bicep",
"ms-dotnettools.csharp",
"eamodio.gitlens",
"github.vscode-pull-request-github",
"streetsidesoftware.code-spell-checker"
],
"features": {
"github-cli": "latest"
},
"onCreateCommand": "/bin/pwsh -f .devcontainer/container-build.ps1",
"postStartCommand": "/bin/pwsh -f .devcontainer/container-start.ps1"
"ms-azuretools.vscode-bicep"
]
}
},
"features": {
"github-cli": "latest",
"powershell": "latest"
},
"onCreateCommand": "/opt/microsoft/powershell/7/pwsh -f .devcontainer/container-build.ps1",
"postStartCommand": "/opt/microsoft/powershell/7/pwsh -f .devcontainer/container-start.ps1",
"build": {
"dockerfile": "Dockerfile",
"args": {
"VARIANT": "6.0-bullseye-slim"
}
},
"remoteUser": "vscode"
}