Initial commit with exported changes from codespace#6356
Initial commit with exported changes from codespace#6356cbavidge1989-ctrl wants to merge 2 commits into
Conversation
|
@cbavidge1989-ctrl please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
@check-spelling-bot Report🔴 Please reviewSee the 📂 files view, the 📜action log, or 📝 job summary for details.Unrecognized words (17)These words are not needed and should be removedAAD ABCD abi ACL'd AMap Amd appdata ARMNT asan Baz bitmask bluetooth boundparms brk Buf certs cgi CMSG codepage commandline constexpr Cov cswinrt CTL Dbg Dcom decompressor dedupe DEFT devhome Dns dsc ERANGE errcode errmsg errstr filemode Finalizers FULLWIDTH fuzzer GES github Hackathon HINSTANCE hlocal hmac Hyperlink ICONDIR icu idx img inet Intelli iwr JDK LCID lhs LONGLONG LPBYTE LPCWSTR LPDWORD LPSTR LPVOID LPWSTR MAJORVERSION MAXLENGTH maxvalue MDs MINORVERSION mta nlohmann NONAME NOUPDATE NTFS ofile oid oop OPTOUT outfile OUTOFMEMORY PARAMETERMAP pdb PDWORD pid PKCS pkix placeholders positionals posix pscustomobject pseudocode PSHOST publickey qword redirector regexes remoting reparse REQS rhs rowid RTTI runspace runtimes SARL savepoint Scm sid sqlite subdir subkey trimstart ttl typedef uninitialize uninstallation UNMARSHALING userprofile versioned Webserver website wildcards winreg WMI workaround Wpp wslTo accept these unrecognized words as correct and remove the previously acknowledged and now absent words, you could run the following commands... in a clone of the git@github.com:cbavidge1989-ctrl/winget-cli.git repository curl -s -S -L 'https://raw.githubusercontent.com/check-spelling/check-spelling/v0.0.26/apply.pl' |
perl - 'https://github.com/microsoft/winget-cli/actions/runs/28899375578/attempts/1' &&
git commit -m 'Update check-spelling metadata'Pattern suggestions ✂️ (4)You could add these patterns to Alternatively, if a pattern suggestion doesn't make sense for this project, add a Errors and Notices ❌ (2)See the 📂 files view, the 📜action log, or 📝 job summary for details.
See ❌ Event descriptions for more information. If the flagged items are 🤯 false positivesIf items relate to a ...
|
There was a problem hiding this comment.
Pull request overview
This PR introduces a GitHub Codespaces / Dev Container setup for the repository, including a companion MSSQL container and automation to install SQL tooling and initialize/deploy a database. It also adds Dependabot configuration to keep Dev Container dependencies up to date.
Changes:
- Add a Dev Container configuration using docker-compose with an MSSQL service and a .NET base image.
- Add scripts to install
sqlcmd/sqlpackageand to run.sqlscripts / deploy.dacpacfiles on container creation. - Add Dependabot config for the
devcontainersecosystem.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| .github/dependabot.yml | Enables Dependabot updates for Dev Container definitions. |
| .devcontainer/Dockerfile | Builds the devcontainer image and installs SQL tooling. |
| .devcontainer/docker-compose.yml | Defines app + db services for the dev environment. |
| .devcontainer/devcontainer.json | Configures VS Code devcontainer settings, extensions, and post-create automation. |
| .devcontainer/mssql/installSQLtools.sh | Installs mssql-tools and sqlpackage inside the devcontainer image. |
| .devcontainer/mssql/postCreateCommand.sh | Waits for SQL Server readiness, runs .sql scripts, and deploys .dacpac files. |
| .devcontainer/mssql/setup.sql | Initializes a database schema (creates ApplicationDB). |
| environment: | ||
| SA_PASSWORD: P@ssw0rd | ||
| ACCEPT_EULA: Y |
| "authenticationType": "SqlLogin", | ||
| "user": "sa", | ||
| "password": "P@ssw0rd", | ||
| "emptyPasswordInput": false, | ||
| "savePassword": false, |
| // 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/'", | ||
| "features": { |
| for f in $dacpath/* | ||
| do | ||
| if [ $f == $dacpath/*".dacpac" ] | ||
| then | ||
| dacpac="true" | ||
| echo "Found dacpac $f" | ||
| fi | ||
| done | ||
|
|
||
| for f in $sqlpath/* | ||
| do | ||
| if [ $f == $sqlpath/*".sql" ] | ||
| then | ||
| sqlfiles="true" | ||
| echo "Found SQL file $f" | ||
| fi | ||
| done |
| if [ $sqlfiles == "true" ] | ||
| then | ||
| for f in $sqlpath/* | ||
| do | ||
| if [ $f == $sqlpath/*".sql" ] | ||
| then | ||
| echo "Executing $f" | ||
| /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P $SApassword -d master -i $f | ||
| fi | ||
| done | ||
| fi |
| if [ $dacpac == "true" ] | ||
| then | ||
| for f in $dacpath/* | ||
| do | ||
| if [ $f == $dacpath/*".dacpac" ] | ||
| then | ||
| dbname=$(basename $f ".dacpac") | ||
| echo "Deploying dacpac $f" | ||
| /opt/sqlpackage/sqlpackage /Action:Publish /SourceFile:$f /TargetServerName:localhost /TargetDatabaseName:$dbname /TargetUser:sa /TargetPassword:$SApassword | ||
| fi | ||
| done | ||
| fi |
| echo "Installing mssql-tools" | ||
| curl -sSL https://packages.microsoft.com/keys/microsoft.asc | (OUT=$(apt-key add - 2>&1) || echo $OUT) | ||
| DISTRO=$(lsb_release -is | tr '[:upper:]' '[:lower:]') | ||
| CODENAME=$(lsb_release -cs) | ||
| echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-${DISTRO}-${CODENAME}-prod ${CODENAME} main" > /etc/apt/sources.list.d/microsoft.list | ||
| apt-get update | ||
| ACCEPT_EULA=Y apt-get -y install unixodbc-dev msodbcsql17 libunwind8 mssql-tools |
📖 Description
🔗 References
🔍 Validation
✅ Checklist
📋 Issue Type
Microsoft Reviewers: Open in CodeFlow