#!/bin/bash set -e # Wait for SQL Server to be ready # You can adjust the sleep time if needed sleep 7 # Run init-script with long timeout - and make it run in the background /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "Br1tt0nPassw0rd" -i init.sql & # Start SQL Server /opt/mssql/bin/sqlservr