Skip to content

Commit

Permalink
mssql update in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Aug 1, 2024
1 parent 5ecbc85 commit e118165
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion db-test-setup/mssql/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG VERSION=2019-latest
ARG VERSION=2022-latest
FROM mcr.microsoft.com/mssql/server:${VERSION}

# Create a config directory
Expand Down
2 changes: 1 addition & 1 deletion db-test-setup/mssql/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pid=$!
sleep 15

# Run the setup script to create the DB and the schema in the DB
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "$SA_PASSWORD" -d master -i setup.sql
/opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P "$SA_PASSWORD" -d master -i setup.sql -No

# Wait for sqlservr to exit
wait -n $pid
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ services:
ports: ["1433:1433"]
build: { context: "db-test-setup/mssql" }
healthcheck:
test: /opt/mssql-tools/bin/sqlcmd -S localhost -U root -P "Password123!" -Q "SELECT 1" -b -o /dev/null
test: /opt/mssql-tools18/bin/sqlcmd -S localhost -U root -P "Password123!" -Q "SELECT 1" -b -o /dev/null -No
interval: 10s
timeout: 3s
retries: 10
Expand Down

0 comments on commit e118165

Please sign in to comment.