Skip to content

Commit 1b3543c

Browse files
authoredJun 12, 2023
bash script to create create SQL Instance in docker (#478)
Add bash script to create SQL Instance in Docker
1 parent fd6e3ba commit 1b3543c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎DOCKER/CreateSqlInstance.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
for i in $(seq 1 $2);
4+
do
5+
let "C = $i + $1"
6+
docker run --cpus="0.5" --memory="2g" --memory-swap="4g" -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=Testing1122" -p 49$C:1433 --name SqlWatch-$C -h SqlWatch-$C -d mcr.microsoft.com/mssql/server:2019-CU11-ubuntu-20.04;
7+
done

0 commit comments

Comments
 (0)
Please sign in to comment.