Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FINERACT-806 - Allow customizing Tenants JDBC password, username and driverClassName (not just URL) #698

Closed
wants to merge 1 commit into from

Conversation

xurror
Copy link

@xurror xurror commented Jan 24, 2020

In addition to being able to customize the JDBC URL of the Tenant DB (in the Docker Image, but even otherwise) as introduced in FINERACT-773, it would be good if that JDBC connection's username, password and driverClassName could be overriden via a simple environment variable as well.

This should be relatively straightforward (now) - just apply the "pattern" from https://github.com/apache/fineract/pull/648/files and introduce additional Java System properties (in lower-case) like the fineract_tenants_url from FINERACT-773.

@xurror xurror requested a review from vorburger January 24, 2020 04:54
docker/server.xml Outdated Show resolved Hide resolved
@vorburger
Copy link
Member

In addition to the variable name, this is also missing the equivalent customization for the demo tenant DB, as in https://github.com/apache/fineract/pull/648/files

@awasum
Copy link
Contributor

awasum commented Jan 27, 2020

@xurror .. Are you looking forward to addressing feedback provided by @vorburger ?

@xurror
Copy link
Author

xurror commented Jan 31, 2020

Definitely

@xurror
Copy link
Author

xurror commented Feb 5, 2020

This should wrap up this issue

Copy link
Member

@vorburger vorburger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xurror sorry when I previously wrote Please use ’fineract_tenants_uid’ (and _pwd) instead of "username" and "password", to make more clear what these system properties are for. I meant fineract_tenants_pwd not _pwd .. would you be willing to change this? Again sorry for the confusion.

@xurror
Copy link
Author

xurror commented Feb 8, 2020 via email

Added java system properties for username and password to docker-compose
Modified sever.xml to get username and password

closes https://jira.apache.org/jira/browse/FINERACT-806
@vorburger
Copy link
Member

@xurror sorry I noticed only now that, more importantly than the naming, this doesn't actually work... explaining what needs to be done to fix it takes me the same amount of time as doing it, so let me raise a follow-up PR which takes this commit and adds another one doing the needful - hope OK for you.

@xurror
Copy link
Author

xurror commented Feb 9, 2020

No problem, do I need to close this?

@vorburger
Copy link
Member

closing this in favour of new #713

@vorburger vorburger closed this Feb 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants