mirror of
https://github.com/knex/knex.git
synced 2025-09-21 06:03:55 +00:00

* Normalized and validated driverNames of test db clients and fixed oracle test setup * Fixed failed queries from old query building tests which hadn't been ran in ages * Allow selecting node version which is used to run oracledb docker tests * Improved sql tester error messages * Fixed rest of the oracledb tests * Removed invalid flag from docker-compose * Print mssql logs if initialization fails * Fixed syntax error + final tests * Added restart of failure for mssql DB initialization to try again if server was not ready * Printout always mssql logs after container is started * Fixed wait time printing after trying to connect * Use npm run oracledb:test for testing oracle in travis
23 lines
617 B
YAML
23 lines
617 B
YAML
version: '3'
|
|
|
|
services:
|
|
mssql:
|
|
image: microsoft/mssql-server-linux:2017-latest
|
|
ports:
|
|
- "1433:1433"
|
|
environment:
|
|
- ACCEPT_EULA=Y
|
|
- SA_PASSWORD=S0meVeryHardPassword
|
|
healthcheck:
|
|
test: /opt/mssql-tools/bin/sqlcmd -S mssql -U sa -P 'S0meVeryHardPassword' -Q 'select 1'
|
|
initmssqlknexdb:
|
|
image: microsoft/mssql-server-linux:2017-latest
|
|
links:
|
|
- mssql
|
|
depends_on:
|
|
- mssql
|
|
entrypoint:
|
|
- bash
|
|
- -c
|
|
- '/opt/mssql-tools/bin/sqlcmd -S mssql -U sa -P S0meVeryHardPassword -d master -Q "CREATE DATABASE knex_test"'
|
|
restart: on-failure |