Skip to content

Commit

Permalink
updates to datastore script
Browse files Browse the repository at this point in the history
  • Loading branch information
florianm committed Jul 12, 2017
1 parent ef71f66 commit 53aac5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions contrib/docker/postgresql/Dockerfile
Expand Up @@ -12,3 +12,5 @@ ENV POSTGRES_DB ckan

# Output variables when building for the first time. Will not run if using cached image.
RUN echo "Building postgres:9.6 with user $POSTGRES_USER, pw $POSTGRES_PASSWORD, db $POSTGRES_DB"

ADD /docker-entrypoint-initdb.d/00_create_datastore.sh ./00_create_datastore.sh
Expand Up @@ -2,7 +2,7 @@
set -e
echo "Creating datastore readonly user and database in image db..."
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
CREATE USER datastore_ro NOCREATEDB NOSUPERUSER NOCREATEROLE PASSWORD $DS_RO_PASS;
CREATE USER datastore_ro LOGIN NOCREATEDB NOSUPERUSER NOCREATEROLE ENCRYPTED PASSWORD "$DS_RO_PASS";
CREATE DATABASE datastore OWNER ckan ENCODING utf-8;
GRANT ALL PRIVILEGES ON DATABASE datastore TO ckan;
EOSQL
Expand Down

0 comments on commit 53aac5e

Please sign in to comment.