From 88033a66c6d0b10921c330d79fa7db28e363888c Mon Sep 17 00:00:00 2001 From: Dan Peterson Date: Sun, 3 May 2020 15:04:23 -0300 Subject: [PATCH 1/3] bin/ci: pass POSTGRES_HOST_AUTH_METHOD=trust to postgres container In https://github.com/docker-library/postgres/pull/658 a change was made to the postgres image to require a password by default or explicit disabling of auth. For bin/ci, disable auth to keep configs simple. Add a note reminding that doing this is highly insecure and should not be done in production. --- bin/ci | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/ci b/bin/ci index 0deddee..964d756 100755 --- a/bin/ci +++ b/bin/ci @@ -50,7 +50,9 @@ if ! docker run --rm -v "$(pwd)/ci-bundle:/bundle" oba-ci bash -c 'cd /bundle && fi echo "=== running postgres" -docker run --name oba-postgres -d --rm postgres:10 +# Note that POSTGRES_HOST_AUTH_METHOD=trust is highly insecure and should +# never be used in production. +docker run --name oba-postgres -d -e POSTGRES_HOST_AUTH_METHOD=trust --rm postgres:10 echo "=== creating postgres database" postgres_done=0 From f19f790f62dd7c62dfdbf4a803e4cb037badf64a Mon Sep 17 00:00:00 2001 From: Dan Peterson Date: Mon, 4 May 2020 17:09:43 -0300 Subject: [PATCH 2/3] config: try configuring wiki --- config/onebusaway-enterprise-acta-webapp-data-sources.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/onebusaway-enterprise-acta-webapp-data-sources.xml b/config/onebusaway-enterprise-acta-webapp-data-sources.xml index 60c949f..5ae32b8 100644 --- a/config/onebusaway-enterprise-acta-webapp-data-sources.xml +++ b/config/onebusaway-enterprise-acta-webapp-data-sources.xml @@ -26,4 +26,12 @@ + + + + + + + + From 0360de061f1dab90a2b73833f6dc69b319237fd5 Mon Sep 17 00:00:00 2001 From: Dan Peterson Date: Thu, 30 Jul 2020 19:12:10 -0300 Subject: [PATCH 3/3] config: add agencyMetadataSessionFactory to acta --- ...saway-enterprise-acta-webapp-data-sources.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/config/onebusaway-enterprise-acta-webapp-data-sources.xml b/config/onebusaway-enterprise-acta-webapp-data-sources.xml index 5ae32b8..273ba80 100644 --- a/config/onebusaway-enterprise-acta-webapp-data-sources.xml +++ b/config/onebusaway-enterprise-acta-webapp-data-sources.xml @@ -34,4 +34,20 @@ + + + + + org.onebusaway.agency_metadata.model.AgencyMetadata + org.onebusaway.agency_metadata.service.AgencyMetadataDaoImpl + + + + + 1 + thread + org.hibernate.cache.NoCacheProvider + + +