Skip to content

Commit

Permalink
more cosmetic changes to shell scripts for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
rgward committed Feb 13, 2019
1 parent dcd9125 commit dc98e86
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion demos/containers/sqlcontainers/step3_docker_restorewwi.sh
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
sudo docker exec -d sql2017cu10 /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P 'Sql2017isfast' -Q 'RESTORE DATABASE WideWorldImporters FROM DISK = "/var/opt/mssql/WideWorldImporters-Full.bak" WITH MOVE "WWI_Primary" TO "/var/opt/mssql/data/WideWorldImporters.mdf", MOVE "WWI_UserData" TO "/var/opt/mssql/data/WideWorldImporters_userdata.ndf", MOVE "WWI_Log" TO "/var/opt/mssql/data/WideWorldImporters.ldf", MOVE "WWI_InMemory_Data_1" TO "/var/opt/mssql/data/WideWorldImporters_InMemory_Data_1"'
sudo docker exec -d sql2017cu10\
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P 'Sql2017isfast' -Q 'RESTORE DATABASE WideWorldImp$
11 changes: 8 additions & 3 deletions demos/containers/sqlcontainers/step4_dockerrun2.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
sudo docker run -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=Sql2017isfast' --hostname sql2 -p 1402:1433 -v sqlvolume2:/var/opt/mssql --name sql2 -d mcr.microsoft.com/mssql/server:2017-latest-ubuntu


sudo docker run\
-e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=Sql2017isfast'\
--hostname sql2\
-p 1402:1433\
-v sqlvolume2:/var/opt/mssql\
--name sql2\
-d\
mcr.microsoft.com/mssql/server:2017-latest-ubuntu
1 change: 0 additions & 1 deletion demos/containers/sqlcontainers/step9_dockerexec.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@

sudo docker exec -it sql2017cu10 bash

0 comments on commit dc98e86

Please sign in to comment.