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