Skip to content

Commit c1992fb

Browse files
committed
major modernisation
* rate limiting implemented * load testing ui * aspire support
1 parent f1c763d commit c1992fb

62 files changed

Lines changed: 2142 additions & 775 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.aspire/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"appHostPath": "../src/Teapot.AppHost/Teapot.AppHost.csproj"
3+
}

.config/dotnet-tools.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"aspire.cli": {
6+
"version": "9.4.1",
7+
"commands": [
8+
"aspire"
9+
],
10+
"rollForward": false
11+
}
12+
}
13+
}

.devcontainer/Dockerfile

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

.devcontainer/devcontainer.json

Lines changed: 10 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,11 @@
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.156.0/containers/dotnet
31
{
4-
"name": "C# (.NET)",
5-
"build": {
6-
"dockerfile": "Dockerfile",
7-
"args": {
8-
// Update 'VARIANT' to pick a .NET Core version: 2.1, 3.1, 5.0
9-
"VARIANT": "5.0",
10-
// Options
11-
"INSTALL_NODE": "false",
12-
"NODE_VERSION": "lts/*",
13-
"INSTALL_AZURE_CLI": "false"
14-
}
15-
},
16-
17-
// Set *default* container specific settings.json values on container create.
18-
"settings": {
19-
"terminal.integrated.shell.linux": "/bin/bash"
20-
},
21-
22-
// Add the IDs of extensions you want installed when the container is created.
23-
"extensions": ["ms-dotnettools.csharp"],
24-
25-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
26-
"forwardPorts": [5000, 5001],
27-
28-
// [Optional] To reuse of your local HTTPS dev cert:
29-
//
30-
// 1. Export it locally using this command:
31-
// * Windows PowerShell:
32-
// dotnet dev-certs https --trust; dotnet dev-certs https -ep "$env:USERPROFILE/.aspnet/https/aspnetapp.pfx" -p "SecurePwdGoesHere"
33-
// * macOS/Linux terminal:
34-
// dotnet dev-certs https --trust; dotnet dev-certs https -ep "${HOME}/.aspnet/https/aspnetapp.pfx" -p "SecurePwdGoesHere"
35-
//
36-
// 2. Uncomment these 'remoteEnv' lines:
37-
// "remoteEnv": {
38-
// "ASPNETCORE_Kestrel__Certificates__Default__Password": "SecurePwdGoesHere",
39-
// "ASPNETCORE_Kestrel__Certificates__Default__Path": "/home/vscode/.aspnet/https/aspnetapp.pfx",
40-
// },
41-
//
42-
// 3. Do one of the following depending on your scenario:
43-
// * When using GitHub Codespaces and/or Remote - Containers:
44-
// 1. Start the container
45-
// 2. Drag ~/.aspnet/https/aspnetapp.pfx into the root of the file explorer
46-
// 3. Open a terminal in VS Code and run "mkdir -p /home/vscode/.aspnet/https && mv aspnetapp.pfx /home/vscode/.aspnet/https"
47-
//
48-
// * If only using Remote - Containers with a local container, uncomment this line instead:
49-
// "mounts": [ "source=${env:HOME}${env:USERPROFILE}/.aspnet/https,target=/home/vscode/.aspnet/https,type=bind" ],
50-
51-
// Use 'postCreateCommand' to run commands after the container is created.
52-
// "postCreateCommand": "dotnet restore",
53-
54-
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
55-
"remoteUser": "vscode"
56-
}
2+
"name": "httpstat.us",
3+
"image": "mcr.microsoft.com/devcontainers/dotnet:1-9.0-bookworm",
4+
"features": {
5+
"ghcr.io/dotnet/aspire-devcontainer-feature/dotnetaspire:1": {},
6+
"ghcr.io/devcontainers/features/github-cli:1": {},
7+
"ghcr.io/azure/azure-dev/azd": {},
8+
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
9+
},
10+
"postCreateCommand": "dotnet tool restore"
11+
}

.devcontainer/library-scripts/azcli-debian.sh

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

0 commit comments

Comments
 (0)