Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/syedhassaanahmed/northwind-sql-db-container
Docker container which initializes SQL Server with the Northwind database
https://github.com/syedhassaanahmed/northwind-sql-db-container
Last synced: about 2 months ago
JSON representation
Docker container which initializes SQL Server with the Northwind database
- Host: GitHub
- URL: https://github.com/syedhassaanahmed/northwind-sql-db-container
- Owner: syedhassaanahmed
- License: mit
- Created: 2022-10-14T07:54:02.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-22T09:52:32.000Z (almost 2 years ago)
- Last Synced: 2024-11-09T03:54:55.449Z (about 2 months ago)
- Language: Shell
- Homepage:
- Size: 16.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# northwind-sql-db-container
![Docker](https://github.com/syedhassaanahmed/northwind-sql-db-container/actions/workflows/docker-publish.yml/badge.svg)This docker container initializes SQL Server 2022 with [Northwind database](https://github.com/Microsoft/sql-server-samples/tree/master/samples/databases/northwind-pubs). These are the steps to build and run the container;
- To build the container, execute `docker build . -t nwndsqldbimg`
OR
- In order to override the default SA password, execute
```bash
docker build . \
--build-arg MSSQL_SA_PASSWORD= \
-t nwndsqldbimg
```- Run the container by executing `docker run -p 1433:1433 -d --name nwndsqldbcont nwndsqldbimg`
- Check logs if the container successfully started `docker logs nwndsqldbcont`
- Connect to the SQL Server using Management Studio/Azure Data Studio.
- Verify that the new database `Northwind` exists with the correct tables.
- If you'd like to automate the verification of database and table creation, you can execute the script `smoke-test.sh`.