15106: Arvbox update to be able to run the trgm migration
authorEric Biagiotti <ebiagiotti@veritasgenetics.com>
Thu, 13 Jun 2019 14:22:47 +0000 (10:22 -0400)
committerEric Biagiotti <ebiagiotti@veritasgenetics.com>
Thu, 13 Jun 2019 14:22:47 +0000 (10:22 -0400)
Arvados-DCO-1.1-Signed-off-by: Eric Biagiotti <ebiagiotti@veritasgenetics.com>

tools/arvbox/lib/arvbox/docker/Dockerfile.base
tools/arvbox/lib/arvbox/docker/api-setup.sh

index 65171de3d25e894c6fbfc86b862959b1cc22a606..758bcbc5f255a61d96c49d2725910e992ebbee34 100644 (file)
@@ -8,7 +8,7 @@ ENV DEBIAN_FRONTEND noninteractive
 
 RUN apt-get update && \
     apt-get -yq --no-install-recommends -o Acquire::Retries=6 install \
-    postgresql-9.6 git build-essential runit curl libpq-dev \
+    postgresql-9.6 postgresql-contrib-9.6 git build-essential runit curl libpq-dev \
     libcurl4-openssl-dev libssl1.0-dev zlib1g-dev libpcre3-dev \
     openssh-server python-setuptools netcat-traditional \
     python-epydoc graphviz bzip2 less sudo virtualenv \
index 482934c9151e295b38182081e3b0f4e6be8bc1a5..5b63950cd1200f95c5a993636a37e7a2c0933639 100755 (executable)
@@ -77,7 +77,7 @@ database_pw=$(cat /var/lib/arvados/api_database_pw)
 
 if ! (psql postgres -c "\du" | grep "^ arvados ") >/dev/null ; then
     psql postgres -c "create user arvados with password '$database_pw'"
-    psql postgres -c "ALTER USER arvados CREATEDB;"
+    psql postgres -c "ALTER USER arvados WITH SUPERUSER;"
 fi
 
 sed "s/password:.*/password: $database_pw/" <config/database.yml.example >config/database.yml