From 4af4ecfd0e3704652cfb64667e6752fc7f4306b2 Mon Sep 17 00:00:00 2001 From: Burak Yigit Kaya Date: Fri, 6 Dec 2019 23:21:54 +0300 Subject: [PATCH] fix(install): Don't run migrations in interactive mode (#296) This should fix the GCB failures. --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 6700db3..1e41aac 100755 --- a/install.sh +++ b/install.sh @@ -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