Containerized script that serves as an schemas and data for importer for MSSQL databases
532
A container base on official MS SQL Server Tools for Linux with a purpose of making a simple app that will help you seed your database.
All you need to provide is couple of environment variables and a volume that contains the scripts.
In order to tell :shower: where to find the scripts and how to execute them two requirements must be met:
playlist fileIt must be called playlist and it should contain a list of scripts to be executed. For example it can look like this:
logins.sql
database1.sql
seedTables.sql
roles.sql
Note: Ordering IS important the first script will be executed first! (In above example that would be: logins.sql
scripts folderIt must be called scripts.
The folder should contain all scripts that are named in the playlist file if you add scripts that do not have entry in the playlist file they will be ignored.
So, to be sure we are on the same page the folder structure should look like this:
someFolder/
- playlist
- scripts/
- logins.sql
- database1.sql
- seedTables.sql
- roles.sql
Thanks to the person that has created the ASCII art :-)
playlist file and the scripts folderContent type
Image
Digest
Size
93.3 MB
Last updated
over 6 years ago
docker pull mirzamerdovic/shower