Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Updates base image and adds features the nice way, allows local testing #1406

Merged
merged 12 commits into from
Mar 27, 2024
23 changes: 17 additions & 6 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Ubuntu",
"image": "mcr.microsoft.com/devcontainers/javascript-node:0-18-bullseye",
"image": "mcr.microsoft.com/devcontainers/javascript-node:20-bullseye",
"customizations": {
"vscode": {
"extensions": [
Expand All @@ -17,15 +17,26 @@
]
}
},
"postCreateCommand": "npm install -g prettier && dotnet tool install -g Azure.Bicep.RegistryModuleTool && pwsh -C Install-Module Az.Accounts -Repository PSGallery -Force && pwsh -C Install-Module Az.Resources -Repository PSGallery -Force && pwsh -C Install-Module Az.KeyVault -Repository PSGallery -Force",
"postStartCommand": "az bicep install",
"postCreateCommand": "dotnet tool install -g Azure.Bicep.RegistryModuleTool",
"postStartCommand": "",
"remoteEnv": {
"PATH": "${containerEnv:PATH}:/home/node/.dotnet/tools:/home/node/.azure/bin"
},
"features": {
"azure-cli": "latest",
"dotnet": "8.0",
"ghcr.io/devcontainers/features/azure-cli:1": {
"version": "latest",
"installBicep": true
},
"ghcr.io/devcontainers/features/dotnet:2": {},
"ghcr.io/devcontainers/features/node:1": {},
"ghcr.io/devcontainers/features/powershell:1": {}
"ghcr.io/devcontainers/features/powershell:1": {
"modules": ["Az.Accounts", "Az.Resources", "Az.KeyVault", "Pester"]
},
"ghcr.io/devcontainers-contrib/features/prettier:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
// act to run github actions locally
"ghcr.io/devcontainers-contrib/features/act-asdf:2": {},
// for act
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
}
}
Loading