Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add dev container for UI team #448

Merged
merged 2 commits into from
Nov 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions MSSQL/configure-db.sh

This file was deleted.

29 changes: 0 additions & 29 deletions MSSQL/configure-db.sql

This file was deleted.

7 changes: 0 additions & 7 deletions MSSQL/entrypoint.sh

This file was deleted.

24 changes: 24 additions & 0 deletions OutOfSchool/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "OutOfSchool Backend",
"image": "mcr.microsoft.com/vscode/devcontainers/dotnetcore:3.1",
"settings": {},
"extensions": [
"ms-dotnettools.csharp"
],
"portsAttributes": {
"5000": {
"label": "WebApi",
"onAutoForward": "notify"
},
"5443": {
"label": "Identity",
"onAutoForward": "notify"
}
},
"containerEnv": {
"ConnectionStrings__DefaultConnection": "server=host.docker.internal;user=root;password=rootPassword;database=out_of_school;guidformat=binary16",
"ASPNETCORE_Environment": "Development",
"DOTNET_USE_POLLING_FILE_WATCHER": "true"
},
"postCreateCommand": "dotnet restore"
}
34 changes: 34 additions & 0 deletions OutOfSchool/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "identity-watch",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"--project",
"${workspaceFolder}/OutOfSchool.IdentityServer/OutOfSchool.IdentityServer.csproj",
"--",
"run",
"--launch-profile",
"DevContainer"
],
"problemMatcher": []
},
{
"label": "webapi-watch",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"--project ${workspaceFolder}/OutOfSchool.WebApi/OutOfSchool.WebApi.csproj",
"--",
"run",
"--launch-profile",
"DevContainer"
],
"problemMatcher": []
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,7 @@
</ItemGroup>

<ProjectExtensions><VisualStudio><UserProperties appsettings_1development_1json__JsonSchema="https://json.schemastore.org/appsettings" appsettings_1release_1json__JsonSchema="https://json.schemastore.org/appsettings" /></VisualStudio></ProjectExtensions>

<ItemGroup>
<Watch Include="wwwroot/**" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"DevContainer": {
"commandName": "Project",
"applicationUrl": "http://localhost:5443",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_URLS": "http://+:5443"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
html,
html,
body {
height: 100%;
}
Expand Down
8 changes: 8 additions & 0 deletions OutOfSchool/OutOfSchool.WebApi/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"DevContainer": {
"commandName": "Project",
"applicationUrl": "http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_URLS": "http://+:5000"
}
}
}
}