Skip to content

Commit 1115033

Browse files
committed
update devcontainer definitions
1 parent 15b0b64 commit 1115033

File tree

2 files changed

+43
-34
lines changed

2 files changed

+43
-34
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.202.5/containers/dotnet/.devcontainer/base.Dockerfile
2-
3-
# [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
4-
ARG VARIANT="6.0-bullseye-slim"
5-
FROM mcr.microsoft.com/vscode/devcontainers/dotnet:0-${VARIANT}
1+
FROM mcr.microsoft.com/devcontainers/dotnet:dev-8.0
62

73
# [Optional] Uncomment this section to install additional OS packages.
84
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \

.devcontainer/devcontainer.json

Lines changed: 42 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,55 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
22
// https://github.com/microsoft/vscode-dev-containers/tree/v0.202.5/containers/dotnet
33
{
4-
"name": "C# (.NET)",
5-
"runArgs": [ "--init" ],
4+
"name": "GitVersion",
65
"build": {
76
"dockerfile": "Dockerfile",
8-
"args": {
9-
"VARIANT": "7.0",
7+
"context": "."
8+
},
9+
"features": {
10+
"ghcr.io/devcontainers/features/common-utils:2": {
11+
"installZsh": "true",
12+
"username": "vscode",
13+
"userUid": "1000",
14+
"userGid": "1000",
15+
"upgradePackages": "true"
16+
},
17+
"ghcr.io/devcontainers/features/git:1": {
18+
"version": "latest",
19+
"ppa": "false"
20+
},
21+
"ghcr.io/devcontainers/features/powershell:1": {
22+
"version": "latest"
23+
},
24+
"ghcr.io/devcontainers/features/github-cli:1": {
25+
"version": "latest"
26+
},
27+
"ghcr.io/devcontainers/features/docker-in-docker:2": {
28+
"version": "latest"
1029
}
1130
},
12-
13-
// Set *default* container specific settings.json values on container create.
14-
"settings": {
15-
"editor.fontFamily": "'Cascadia Code', Consolas, 'Courier New', monospace",
16-
"editor.rulers": [ 90 ],
17-
"cSpell.words": [
18-
"commiting",
19-
"gittools",
20-
"gitversion"
21-
],
31+
"customizations": {
32+
"vscode": {
33+
"settings": {
34+
"editor.fontFamily": "'Cascadia Code', Consolas, 'Courier New', monospace",
35+
"editor.rulers": [ 90 ],
36+
"cSpell.words": [
37+
"commiting",
38+
"gittools",
39+
"gitversion"
40+
]
41+
},
42+
// Add the IDs of extensions you want installed when the container is created.
43+
"extensions": [
44+
"ms-dotnettools.csharp",
45+
"EditorConfig.EditorConfig",
46+
"streetsidesoftware.code-spell-checker"
47+
]
48+
}
2249
},
2350

24-
// Add the IDs of extensions you want installed when the container is created.
25-
"extensions": [
26-
"ms-dotnettools.csharp",
27-
"EditorConfig.EditorConfig",
28-
"streetsidesoftware.code-spell-checker"
29-
],
30-
3151
"postCreateCommand": "dotnet restore src; dotnet build build",
3252

3353
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
34-
"remoteUser": "vscode",
35-
"features": {
36-
"docker-in-docker": "latest",
37-
"git": "latest",
38-
"github-cli": "latest",
39-
"sshd": "latest",
40-
"powershell": "latest"
41-
}
54+
"remoteUser": "vscode"
4255
}

0 commit comments

Comments
 (0)