Skip to content

Commit

Permalink
update devcontainer definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
arturcic committed Mar 28, 2024
1 parent 15b0b64 commit 1115033
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 34 deletions.
6 changes: 1 addition & 5 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.202.5/containers/dotnet/.devcontainer/base.Dockerfile

# [Choice] .NET version: 6.0, 5.0, 3.1, 6.0-bullseye, 5.0-bullseye, 3.1-bullseye, 6.0-focal, 5.0-focal, 3.1-focal
ARG VARIANT="6.0-bullseye-slim"
FROM mcr.microsoft.com/vscode/devcontainers/dotnet:0-${VARIANT}
FROM mcr.microsoft.com/devcontainers/dotnet:dev-8.0

# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
Expand Down
71 changes: 42 additions & 29 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,55 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.202.5/containers/dotnet
{
"name": "C# (.NET)",
"runArgs": [ "--init" ],
"name": "GitVersion",
"build": {
"dockerfile": "Dockerfile",
"args": {
"VARIANT": "7.0",
"context": "."
},
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"installZsh": "true",
"username": "vscode",
"userUid": "1000",
"userGid": "1000",
"upgradePackages": "true"
},
"ghcr.io/devcontainers/features/git:1": {
"version": "latest",
"ppa": "false"
},
"ghcr.io/devcontainers/features/powershell:1": {
"version": "latest"
},
"ghcr.io/devcontainers/features/github-cli:1": {
"version": "latest"
},
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"version": "latest"
}
},

// Set *default* container specific settings.json values on container create.
"settings": {
"editor.fontFamily": "'Cascadia Code', Consolas, 'Courier New', monospace",
"editor.rulers": [ 90 ],
"cSpell.words": [
"commiting",
"gittools",
"gitversion"
],
"customizations": {
"vscode": {
"settings": {
"editor.fontFamily": "'Cascadia Code', Consolas, 'Courier New', monospace",
"editor.rulers": [ 90 ],
"cSpell.words": [
"commiting",
"gittools",
"gitversion"
]
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-dotnettools.csharp",
"EditorConfig.EditorConfig",
"streetsidesoftware.code-spell-checker"
]
}
},

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-dotnettools.csharp",
"EditorConfig.EditorConfig",
"streetsidesoftware.code-spell-checker"
],

"postCreateCommand": "dotnet restore src; dotnet build build",

// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode",
"features": {
"docker-in-docker": "latest",
"git": "latest",
"github-cli": "latest",
"sshd": "latest",
"powershell": "latest"
}
"remoteUser": "vscode"
}

0 comments on commit 1115033

Please sign in to comment.