mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
Add a tiny sleep to the run_migrations script due to a weird bug with Docker (#1634)
This commit is contained in:

committed by
GitHub

parent
162822bd9d
commit
4d6b0c9106
@ -1,5 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# There seems to be [a bug with docker-compose](https://github.com/docker/compose/issues/4076#issuecomment-324932294)
|
||||||
|
# where it takes ~40ms to connect to the terminal output of the container, so stuff logged to the terminal in this time is lost.
|
||||||
|
# The best workaround seems to be adding tiny delay like so:
|
||||||
|
sleep 0.1;
|
||||||
|
|
||||||
MIGRATE_DIRECTORY="/mnt/migrator/DbScripts"
|
MIGRATE_DIRECTORY="/mnt/migrator/DbScripts"
|
||||||
LAST_MIGRATION_FILE="/mnt/data/last_migration"
|
LAST_MIGRATION_FILE="/mnt/data/last_migration"
|
||||||
SERVER='localhost'
|
SERVER='localhost'
|
||||||
|
Reference in New Issue
Block a user