introduce extra wait time for flaky mssql 2019

This commit is contained in:
Boshi LIAN 2020-05-15 01:53:17 -07:00
parent f4b6f09fab
commit 659bcaebeb
3 changed files with 8 additions and 3 deletions

View file

@ -137,6 +137,7 @@ services:
environment:
- "WAIT_HOST=mssql"
- "WAIT_PORT=1433"
- "EXTRA_WAIT=5"
- "SSHPIPERD_UPSTREAM_DRIVER=mssql"
- "SSHPIPERD_UPSTREAM_MSSQL_HOST=mssql"
- "SSHPIPERD_UPSTREAM_MSSQL_PASSWORD=yourStrong(!)Password"
@ -160,11 +161,11 @@ services:
- host1
- host2
mssql:
image: mcr.microsoft.com/mssql/server:2017-CU12-ubuntu
image: mcr.microsoft.com/mssql/server
environment:
- "ACCEPT_EULA=y"
- "SA_PASSWORD=yourStrong(!)Password"
# - "MSSQL_PID=Developer"
- "MSSQL_PID=Developer"
#tmpfs:
# - /var/opt/mssql/data

View file

@ -1,7 +1,7 @@
#!/bin/sh
if [ ! -z $WAIT_HOST ]; then
/wait.sh $WAIT_HOST $WAIT_PORT
/wait.sh $WAIT_HOST $WAIT_PORT $EXTRA_WAIT
fi
/sshpiperd pipe add -n host1 -u host1 --upstream-username root

View file

@ -7,3 +7,7 @@ for i in `seq 300`; do
fi
sleep 1
done
if [ -n "$3" ]; then
sleep $3;
fi