changeset 116:dad6cf39691e

Renamed remaining wamos stuff to gemma.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 26 Jun 2018 16:40:44 +0200
parents d349db18bece
children 5e95c62a7e74 29e56c342c9f
files schema/Dockerfile schema/README
diffstat 2 files changed, 14 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/schema/Dockerfile	Tue Jun 26 16:20:04 2018 +0200
+++ b/schema/Dockerfile	Tue Jun 26 16:40:44 2018 +0200
@@ -29,13 +29,13 @@
 # Expose the PostgreSQL port
 EXPOSE 5432
 
-# Create WAMOS role and database
+# Create GEMMA role and database
 ADD *.sql ./
 RUN $PGBIN/pg_ctl start -wo "--config_file=$PGCONF" && \
-    psql -c "CREATE USER wamos PASSWORD 'wamos'" && \
-    createdb wamos && \
-    psql -f wamos.sql -d wamos && \
-    psql -f auth.sql -d wamos && \
+    psql -c "CREATE USER gemma PASSWORD 'gemma'" && \
+    createdb gemma && \
+    psql -f gemma.sql -d gemma && \
+    psql -f auth.sql -d gemma && \
     $PGBIN/pg_ctl stop -m smart
 
 # Set the default command to run when starting the container
--- a/schema/README	Tue Jun 26 16:20:04 2018 +0200
+++ b/schema/README	Tue Jun 26 16:40:44 2018 +0200
@@ -1,24 +1,24 @@
 Build Dockerfile with e.g.:
-$ docker build -t wamos .
+$ docker build -t gemma .
 
 Get a running instance with e.g.:
-$ docker run --name wamos -d -p 54321:5432 -v $PWD:/opt/wamos wamos
+$ docker run --name gemma -d -p 54321:5432 -v $PWD:/opt/gemma gemma
 
 Run tests for RLS policies as database superuser (within container) with:
-$ psql -d wamos -Xf tap_tests.sql
+$ psql -d gemma -Xf tap_tests.sql
 
 Create ER diagrams with e.g.:
 Auxiliary tables:
 $ postgresql_autodoc -p 54321 -h $dockerhost \
-      -U wamos --password=wamos -t dot -l . -s 'wamos'
-$ dot -Tpdf wamos.dot > wamos_auxiliary.pdf
+      -U gemma --password=gemma -t dot -l . -s 'gemma'
+$ dot -Tpdf gemma.dot > gemma_auxiliary.pdf
 
 Waterway related tables:
 $ postgresql_autodoc -p 54321 -h $dockerhost \
-      -U wamos --password=wamos -t dot -l . -s 'wamos_waterway'
-$ dot -Tpdf wamos.dot > wamos_waterway.pdf
+      -U gemma --password=gemma -t dot -l . -s 'gemma_waterway'
+$ dot -Tpdf gemma.dot > gemma_waterway.pdf
 
 Fairway/bottleneck related tables:
 $ postgresql_autodoc -p 54321 -h $dockerhost \
-      -U wamos --password=wamos -t dot -l . -s 'wamos_fairway'
-$ dot -Tpdf wamos.dot > wamos_fairway.pdf
+      -U gemma --password=gemma -t dot -l . -s 'gemma_fairway'
+$ dot -Tpdf gemma.dot > gemma_fairway.pdf