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:
@ -1,3 +1,4 @@
|
||||
*
|
||||
!entrypoint.sh
|
||||
!setup.sql
|
||||
!setup.sh
|
||||
|
@ -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
|
||||
|
@ -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
4
util/MsSql/setup.sh
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
sleep 60s
|
||||
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P ${SA_PASSWORD} -i /setup.sql
|
Reference in New Issue
Block a user