mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
18 lines
666 B
PowerShell
Executable File
18 lines
666 B
PowerShell
Executable File
#!/usr/bin/env pwsh
|
|
# Creates the vault_dev database, and runs all the migrations.
|
|
|
|
# Due to azure-edge-sql not containing the mssql-tools on ARM, we manually use
|
|
# the mssql-tools container which runs under x86_64. We should monitor this
|
|
# in the future and investigate if we can migrate back.
|
|
# docker-compose --profile mssql exec mssql bash /mnt/helpers/run_migrations.sh @args
|
|
|
|
docker run `
|
|
-v "$(pwd)/helpers/mssql:/mnt/helpers" `
|
|
-v "$(pwd)/../util/Migrator:/mnt/migrator/" `
|
|
-v "$(pwd)/.data/mssql:/mnt/data" `
|
|
--env-file .env `
|
|
--network=bitwardenserver_default `
|
|
--rm `
|
|
mcr.microsoft.com/mssql-tools `
|
|
/mnt/helpers/run_migrations.sh @args
|