Skip to content

Commit b95b4fc

Browse files
authored
.net 9, linting, helm chart updated/pushed & misc (#42)
* rm nuget.config * nuget config * devcontainer tidy * improve null handling add envVars * make Service optional * make serviceAccount optional * remove fluff * more tweaks * nuget update * tst ci * chiseled container * revert ci test * retest * revert ci * devcontainer * Directory.Packages.csproj * bump to .net 9 * bump to c# 13 * tidy warnings * added editorconfig * tweak devcontainer * fix build * tidy c# * fixes * sln tweak * rn sln * sln -> slnx * update ci * fix * linting added * precommit added * linting run * +semver:feature tweaked linting
1 parent e1965c4 commit b95b4fc

30 files changed

+497
-213
lines changed

.devcontainer/Dockerfile

Lines changed: 0 additions & 18 deletions
This file was deleted.

.devcontainer/devcontainer.json

Lines changed: 54 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,56 @@
1-
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2-
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/rust
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/dotnet
33
{
4-
"name": "C# (.NET)",
5-
"build": {
6-
"dockerfile": "Dockerfile",
7-
"args": {
8-
// Use the VARIANT arg to pick a Debian OS version: buster, bullseye
9-
// Use bookworm when on local on arm64/Apple Silicon.
10-
"VARIANT": "8.0-bookworm",
11-
"NODE_VERSION": "none"
12-
}
13-
},
14-
// Features to add to the dev container. More info: https://containers.dev/features.
15-
"features": {
16-
"ghcr.io/devcontainers/features/powershell:1": {},
17-
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
18-
"ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {
19-
"version": "latest",
20-
"helm": "3.9.2",
21-
"minikube": "none"
22-
},
23-
"ghcr.io/eitsupi/devcontainer-features/jq-likes:2": {
24-
"jqVersion": "latest",
25-
"yqVersion": "latest"
26-
}
27-
},
28-
// Configure tool-specific properties.
29-
"customizations": {
30-
// Configure properties specific to VS Code.
31-
"vscode": {
32-
// Add the IDs of extensions you want installed when the container is created.
33-
"extensions": [
34-
"ms-dotnettools.csharp",
35-
"ms-vscode.powershell",
36-
"ms-vscode.azurecli",
37-
"ms-azuretools.vscode-docker",
38-
"ms-vscode-remote.vscode-remote-extensionpack",
39-
"mutantdino.resourcemonitor"
40-
]
41-
}
42-
},
43-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
44-
// "forwardPorts": [],
45-
// Use 'postCreateCommand' to run commands after the container is created.
46-
// "postCreateCommand": "rustc --version",
47-
"postCreateCommand": "sh . ./.devcontainer/postCreateCommand.sh",
48-
"postStartCommand": "sh . ./.devcontainer/postStartCommand.sh",
49-
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
50-
"remoteUser": "vscode"
4+
"name": "C# (.NET)",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/dotnet:latest",
7+
// Features to add to the dev container. More info: https://containers.dev/features.
8+
"features": {
9+
"ghcr.io/devcontainers-extra/features/pre-commit:2": {},
10+
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
11+
"ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {
12+
"version": "latest",
13+
"helm": "3.9.2",
14+
"minikube": "none"
15+
},
16+
"ghcr.io/eitsupi/devcontainer-features/jq-likes:2": {
17+
"jqVersion": "latest",
18+
"yqVersion": "latest"
19+
}
20+
},
21+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
22+
// "forwardPorts": [5000, 5001],
23+
// "portsAttributes": {
24+
// "5001": {
25+
// "protocol": "https"
26+
// }
27+
// }
28+
// Use 'postCreateCommand' to run commands after the container is created.
29+
"postCreateCommand": "sh . ./.devcontainer/postCreateCommand.sh",
30+
"postStartCommand": "sh . ./.devcontainer/postStartCommand.sh",
31+
// Configure tool-specific properties.
32+
"customizations": {
33+
// Configure properties specific to VS Code.
34+
"vscode": {
35+
// Set *default* container specific settings.json values on container create.
36+
"settings": {},
37+
// Add the IDs of extensions you want installed when the container is created.
38+
"extensions": [
39+
"ms-vscode.powershell",
40+
"ms-vscode.azurecli",
41+
"ms-azuretools.vscode-docker",
42+
"ms-vscode-remote.vscode-remote-extensionpack",
43+
"mutantdino.resourcemonitor",
44+
"usernamehw.errorlens",
45+
"davidanson.vscode-markdownlint",
46+
"ms-dotnettools.csharp"
47+
]
48+
}
49+
},
50+
"mounts": [
51+
"source=${localEnv:HOME}${localEnv:USERPROFILE}/source/github,target=/workspaces,type=bind,consistency=cached",
52+
"source=${env:HOME}${env:USERPROFILE}/.kube,target=/home/vscode/.kube,type=bind"
53+
]
54+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
55+
// "remoteUser": "root"
5156
}

.devcontainer/postCreateCommand.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,13 @@
33
echo "postCreateCommand.sh"
44
echo "--------------------"
55

6-
sudo chmod +x .devcontainer/postStartCommand.sh
6+
sudo apt-get update
7+
# sudo apt-get install -y python3 pip pre-commit
8+
9+
# echo "Setup pre-commit"
10+
#pre-commit
11+
#pre-commit install --install-hooks
12+
#pre-commit run --all-files --verbose
13+
#pre-commit autoupdate
14+
15+
sudo chmod +x .devcontainer/postStartCommand.sh

.devcontainer/postStartCommand.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ sudo apt-get update
77
sudo apt-get upgrade -y
88

99
dotnet --version
10+
pre-commit autoupdate
1011

11-
echo "Done"
12+
echo "Done"

.dockerignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
!src/**/*.cs
55
!**/*.csproj
66
!**/*.sln
7-
!NuGet.config
87
!global.json
9-
!Directory.build.props
8+
!Directory.Build.props
9+
!Directory.Packages.props

0 commit comments

Comments
 (0)