Add 'apps/arv-web/' from commit 'f9732ad8460d013c2f28363655d0d1b91894dca5'
[arvados.git] / docker / api / config_databases.sh.in
1 #! /bin/sh
2
3 # Configure postgresql in a docker instance.
4
5 /bin/su postgres -c '/usr/lib/postgresql/9.1/bin/postgres --single -D /var/lib/postgresql/9.1/main -c config_file=/etc/postgresql/9.1/main/postgresql.conf' <<EOF
6 alter role postgres with encrypted password '@@POSTGRES_ROOT_PW@@';
7
8 create user @@ARVADOS_DEV_USER@@ with encrypted password '@@ARVADOS_DEV_PW@@';
9 create database @@ARVADOS_DEV_DB@@ with owner @@ARVADOS_DEV_USER@@;
10
11 create user @@ARVADOS_TEST_USER@@ with createdb encrypted password '@@ARVADOS_TEST_PW@@';
12
13 create user @@ARVADOS_PROD_USER@@ with encrypted password '@@ARVADOS_PROD_PW@@';
14 create database @@ARVADOS_PROD_DB@@ with owner @@ARVADOS_PROD_USER@@;
15 EOF