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

Update Dev Container config #3195

Merged
merged 1 commit into from
Dec 5, 2024
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: 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"
}
}
Loading