-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dev-env): add vscode devcontainer
- Loading branch information
Showing
2 changed files
with
55 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,33 @@ | ||
// 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": "t4 DevEnv", | ||
// Use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
"build": { | ||
"dockerfile": "Dockerfile" | ||
}, | ||
|
||
// 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": [], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "sudo pwsh -Command \"Install-Module -Name PSScriptAnalyzer -Force -Scope AllUsers\"", | ||
|
||
// Configure tool-specific properties. | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"streetsidesoftware.code-spell-checker", | ||
"DavidAnson.vscode-markdownlint", | ||
"ms-dotnettools.csdevkit", | ||
"EditorConfig.EditorConfig" | ||
] | ||
} | ||
} | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
} |
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,22 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
ARG DOTNET_VERSION=7.0 | ||
ARG DEBIAN_VERSION=bookworm | ||
|
||
FROM mcr.microsoft.com/devcontainers/dotnet:1-${DOTNET_VERSION}-${DEBIAN_VERSION} | ||
|
||
RUN <<EOT | ||
set -eu | ||
|
||
DEBIAN_FRONTEND=noninteractive | ||
|
||
apt-get update | ||
apt-get install -y \ | ||
dos2unix | ||
|
||
apt-get autoremove -y | ||
apt-get clean | ||
rm -rf /var/lib/apt/lists/* | ||
EOT | ||
|
||
ENTRYPOINT ["/bin/bash"] |