fix(install): Don't run migrations in interactive mode (#296)
This should fix the GCB failures.
This commit is contained in:
parent
89e8053c40
commit
4af4ecfd0e
@ -69,7 +69,7 @@ if [[ $(docker volume ls -q --filter name=sentry-postgres) && $(docker run --rm
|
||||
# There's no rename volume in Docker so copy the contents from old to new name
|
||||
# Also append the `host all all all trust` line as `tianon/postgres-upgrade:9.5-to-9.6`
|
||||
# doesn't do that automatically.
|
||||
docker run --rm -it -v sentry-postgres-new:/from -v sentry-postgres:/to alpine ash -c \
|
||||
docker run --rm -v sentry-postgres-new:/from -v sentry-postgres:/to alpine ash -c \
|
||||
"cd /from ; cp -av . /to ; echo 'host all all all trust' >> /to/pg_hba.conf"
|
||||
# Finally, remove the new old volume as we are all in sentry-postgres now
|
||||
docker volume rm sentry-postgres-new
|
||||
@ -131,7 +131,7 @@ done;
|
||||
echo ""
|
||||
|
||||
echo "Migrating file storage..."
|
||||
docker run --rm -it -v sentry-data:/data alpine ash -c \
|
||||
docker run --rm -v sentry-data:/data alpine ash -c \
|
||||
"mkdir -p /tmp/files; mv /data/* /tmp/files/; mv /tmp/files /data/files"
|
||||
|
||||
cleanup
|
||||
|
Reference in New Issue
Block a user