-
Notifications
You must be signed in to change notification settings - Fork 0
/
devcontainer.json
53 lines (47 loc) · 1.59 KB
/
devcontainer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/dotnet-mssql
{
"name": "C# (.NET) and MS SQL",
"dockerComposeFile": "docker-compose.yml",
"service": "app",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
"features": {
"ghcr.io/azure/azure-dev/azd:latest": {}
},
"customizations": {
"vscode": {
// "settings": {
// // Default connection settings for the SQL Server (mssql) extension
// "mssql.connections": [
// {
// "server": "localhost,1433",
// "database": "",
// "authenticationType": "SqlLogin",
// "user": "sa",
// "password": "P@ssw0rd",
// "emptyPasswordInput": false,
// "savePassword": true,
// "profileName": "mssql-container",
// "trustServerCertificate": true
// }
// ]
// },
"extensions": [
// To use the SQL Server (mssql) extension, uncomment the connection settings above too
// "ms-mssql.mssql",
"GitHub.copilot"
]
}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [5000, 5001],
// "portsAttributes": {
// "5001": {
// "protocol": "https"
// }
// }
// postCreateCommand.sh parameters: $1=SA password, $2=dacpac path, $3=sql script(s) path
"postCreateCommand": "bash .devcontainer/mssql/postCreateCommand.sh 'P@ssw0rd' './bin/Debug/' './.devcontainer/mssql/'"
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}