-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6a8bf2d
Showing
78 changed files
with
41,862 additions
and
0 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,7 @@ | ||
# [Choice] .NET version: 7.0, 7.0-bullseye-slim, 7.0-jammy, 6.0, 6.0-bullseye-slim, 6.0-jammy, 6.0-focal | ||
ARG VARIANT="8.0-jammy" | ||
FROM mcr.microsoft.com/dotnet/sdk:${VARIANT} | ||
|
||
# [Optional] Uncomment this section to install additional OS packages. | ||
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
# && apt-get -y install --no-install-recommends <your-package-list-here> |
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,93 @@ | ||
{ | ||
"name": "DevContainer for .NET", | ||
|
||
"build": { | ||
"dockerfile": "./Dockerfile", | ||
"context": ".", | ||
"args": { | ||
"VARIANT": "8.0-jammy" | ||
} | ||
}, | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
"forwardPorts": [ | ||
// ASP.NET Blazor App | ||
5000, 5001, | ||
// Azure Static Web Apps | ||
4280 | ||
], | ||
|
||
"features": { | ||
// .NET SDK | ||
"ghcr.io/devcontainers/features/dotnet:latest": { | ||
"version": "6.0", | ||
"additionalVersions": "7.0" | ||
}, | ||
|
||
// Azure CLI | ||
"ghcr.io/devcontainers/features/azure-cli:latest": { | ||
"version": "latest", | ||
"extensions": "account,alias,deploy-to-azure,functionapp,staticwebapp,subscription,webapp" | ||
}, | ||
|
||
// GitHub CLI | ||
"ghcr.io/devcontainers/features/github-cli:latest": { | ||
"version": "latest" | ||
}, | ||
|
||
// node.js | ||
"ghcr.io/devcontainers/features/node:latest": { | ||
"version": "lts", | ||
"nodeGypDependencies": true, | ||
"nvmInstallPath": "/usr/local/share/nvm" | ||
}, | ||
|
||
// Install common utilities | ||
"ghcr.io/devcontainers/features/common-utils:1": { | ||
"installZsh": true, | ||
"installOhMyZsh": true, | ||
"upgradePackages": true, | ||
"username": "vscode", | ||
"uid": "1000", | ||
"gid": "1000" | ||
} | ||
}, | ||
|
||
"overrideFeatureInstallOrder": [ | ||
"ghcr.io/devcontainers/features/common-utils" | ||
], | ||
|
||
// Configure tool-specific properties. | ||
"customizations": { | ||
// Configure properties specific to VS Code. | ||
"vscode": { | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"GitHub.copilot", | ||
"GitHub.copilot-chat", | ||
"ms-dotnettools.csdevkit", | ||
"ms-vscode.PowerShell", | ||
"ms-vscode.vscode-node-azure-pack", | ||
"VisualStudioExptTeam.vscodeintellicode" | ||
], | ||
"settings": { | ||
// Uncomment if you want to disable the minimap view | ||
// "editor.minimap.enabled": false, | ||
|
||
// Recommended settings for the explorer pane | ||
"explorer.sortOrder": "type", | ||
"explorer.fileNesting.enabled": true, | ||
"explorer.fileNesting.patterns": { | ||
"*.js": "${capture}.js.map", | ||
"*.razor": "${capture}.razor.cs,${capture}.razor.css" | ||
} | ||
} | ||
} | ||
}, | ||
|
||
// Uncomment if you want to use bash in 'onCreateCommand' after the container is created | ||
"onCreateCommand": "/bin/bash ./.devcontainer/on-create.sh > ~/on-create.log", | ||
|
||
// Uncomment if you want to connect other than 'root'. More info: https://aka.ms/vscode-remote/containers/non-root. | ||
"remoteUser": "vscode" | ||
} |
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,25 @@ | ||
## Install additional apt packages | ||
sudo apt-get update \ | ||
&& sudo apt upgrade -y \ | ||
&& sudo apt-get install -y dos2unix libsecret-1-0 xdg-utils \ | ||
&& sudo apt clean -y \ | ||
&& sudo rm -rf /var/lib/apt/lists/* | ||
|
||
## Configure git | ||
git config --global pull.rebase false | ||
git config --global core.autocrlf input | ||
|
||
## Enable local HTTPS for .NET | ||
dotnet dev-certs https --trust | ||
|
||
## Restore .NET packages and build the default solution | ||
dotnet restore && dotnet build | ||
|
||
## AZURE STATIC WEB APPS CLI ## | ||
# Uncomment the below to install Azure Static Web Apps CLI. Make sure you have installed node.js | ||
npm install -g @azure/static-web-apps-cli | ||
|
||
## OH-MY-POSH ## | ||
# Uncomment the below to install oh-my-posh | ||
sudo wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh | ||
sudo chmod +x /usr/local/bin/oh-my-posh |
Oops, something went wrong.