1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 08:02:49 -05:00

mssql image setup script, db up migrations with upgrade from setup

This commit is contained in:
Kyle Spearrin
2017-08-18 18:22:25 -04:00
parent 1fd7f5dd03
commit d4809686db
9 changed files with 141 additions and 10 deletions

View File

@ -1,3 +1,4 @@
*
!entrypoint.sh
!setup.sql
!setup.sh

View File

@ -1,6 +1,8 @@
FROM microsoft/mssql-server-linux
COPY setup.sql /
COPY setup.sh /
RUN chmod +x /setup.sh
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh

View File

@ -1,4 +1,4 @@
#!/bin/sh
/setup.sh &
/opt/mssql/bin/sqlservr
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P ${SA_PASSWORD} -i /setup.sql

4
util/MsSql/setup.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/sh
sleep 60s
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P ${SA_PASSWORD} -i /setup.sql