Skip to content

Commit

Permalink
Update Dev Container config (Azure#3195)
Browse files Browse the repository at this point in the history
  • Loading branch information
BernieWhite authored Dec 5, 2024
1 parent 096105e commit 375e4e5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 4 additions & 6 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/dotnet
{
"name": "PSRule for Azure Developer Codespace",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/dotnet:1-8.0-bookworm",
"name": "PSRule for Azure Developer",
"image": "mcr.microsoft.com/devcontainers/dotnet:1-8.0-noble",
"customizations": {
"vscode": {
"settings": {
Expand Down Expand Up @@ -34,15 +33,14 @@
"ghcr.io/devcontainers/features/github-cli:1": {
"version": "latest"
},
"ghcr.io/devcontainers/features/azure-cli": {
"ghcr.io/devcontainers/features/azure-cli:1": {
"version": "latest"
},
"ghcr.io/devcontainers/features/python": {
"ghcr.io/devcontainers/features/python:1": {
"version": "latest"
}
},
"onCreateCommand": "dotnet tool install --global PowerShell --version 7.4.6 && sudo chown -R vscode:vscode /usr/bin/pwsh && sudo apt-get update -y && sudo apt-get upgrade -y && dotnet restore && pip install -r requirements-docs.txt && ln /usr/bin/pwsh /home/vscode/.dotnet/tools/pwsh --force",
"updateContentCommand": "/usr/bin/pwsh -f .devcontainer/container-build.ps1",
"postStartCommand": "/usr/bin/pwsh -f .devcontainer/container-start.ps1"
// && sudo apt-get install python3-pip python3-wheel python3-venv -y && python3 -m venv /home/vscode/python/dev && echo \"source /home/vscode/python/dev/bin/activate\" >> /home/vscode/.bashrc &&
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ site/
dist/
**/bin/
**/obj/
**/node_modules/
**/__pycache__/
**/*.egg-info/
**/build/
Expand Down
3 changes: 2 additions & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"sdk": {
"allowPrerelease": false,
"version": "8.0.400",
"rollForward": "latestFeature"
"rollForward": "latestPatch"
}
}

0 comments on commit 375e4e5

Please sign in to comment.