Skip to content

Commit

Permalink
Create Dev Container
Browse files Browse the repository at this point in the history
Create a dev container spec. This allows users to create Codespaces directly on GitHub, or to use VS Code and the Dev Containers plug-in to have a pre-configured container automatically created that is ready to develop in.
  • Loading branch information
phxnsharp authored and phatboyg committed Mar 24, 2023
1 parent b28e2a3 commit 9f34fde
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// 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": "C# (.NET)",
"image": "mcr.microsoft.com/devcontainers/dotnet:0-6.0",
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/dhoeric/features/act:1": {},
"ghcr.io/devcontainers/features/dotnet:1": {
"version": "7"
}
},
"customizations": {
"vscode": {
"extensions": [
"ms-dotnettools.csharp",
"k--kato.docomment",
"formulahendry.dotnet-test-explorer",
"leo-labs.dotnet",
"github.vscode-pull-request-github"
]
}
}

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [5000, 5001],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "dotnet restore",

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}

0 comments on commit 9f34fde

Please sign in to comment.