-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9855702
commit 4c6dac7
Showing
6 changed files
with
21 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/static/import-chinook.sh & /opt/mssql/bin/sqlservr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#run the setup script to create the DB and the schema in the DB | ||
#do this in a loop because the timing for when the SQL instance is ready is indeterminate | ||
|
||
PASSWORD="Password!" | ||
DATABASE="Chinook" | ||
|
||
for i in {1..50}; | ||
do | ||
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "${PASSWORD}" -d "${DATABASE}" -i /static/chinook-sqlserver.sql | ||
if [ $? -eq 0 ] | ||
then | ||
echo "setup.sql completed" | ||
break | ||
else | ||
echo "not ready yet..." | ||
sleep 1 | ||
fi | ||
done | ||
|