Commit Graph
8 Commits
Author SHA1 Message Date
228ec22a60 Allow customizing Tenants DB JDBC uid/pwd/driver (FINERACT-806) (#713)
* Allow customizing Tenants DB JDBC uid/pwd/driver (FINERACT-806)

Added Java system properties for username and password to docker-compose

Modified sever.xml to get username and password

* Fixes for customizing Tenants DB JDBC uid/pwd/driver (FINERACT-806)

* Use random MYSQL_ROOT_PASSWORD in docker-compose.yml (FINERACT-806)

This provides future non-regression testing that the the customized
MySQL password is actually really used, and it doesn't just work because
"mysql" is still hard-coded anywhere.

Co-authored-by: Yemdjih Kaze Nasser <kaze.nasser@outlook.com>
2020-02-09 19:36:58 +01:00
Michael Vorburger edc9e030e1 Allow customizing JDBC URLs at run-time instead of during container build (FINERACT-773)
In Docker, set JAVA_OPTS instead of FINERACT_TENANTS_URL.

Because ARG/ENV in the Dockerfile can't (easily) be changed at run-time.

At first I tried to override the ENTRYPOINT with a script which sets
JAVA_OPTS based on FINERACT_TENANTS_URL and then delegates to the original
/app-entrypoint.sh; that didn't immediately work, so this seems simpler.

Including make default tenant JDBC hostname & port configurable at Docker container run instead of build time.
2019-11-26 06:06:59 +01:00
Michael Vorburger 479d6e0e81 docker-compose.yml version 3.3 instead of 3.7 2019-10-21 09:45:23 +02:00
Steve ConradandMichael Vorburger ⛑️ f9ab8143e4 Add healthcheck so DB is up before Fineract starts 2019-10-14 15:10:13 +02:00
Michael Vorburger 70ac0819b5 Add Z,ro flags to Docker Compose Volume
This is required on secure Linux distributions such as
Fedora/CentOS/RHEL where SELinux is enabled, where without this
the mysql container fails to start due to:

  ls: cannot open directory '/docker-entrypoint-initdb.d/': Permission denied

These Z,ro volume mount flags are (should be..) harmless and ignored
by Docker on other platforms, such as insecure ;) Linux distributions
without SELinux, or Windows and Mac.

PS: I personally don't actually use real Docker, but instead I use Podman
(see https://github.com/containers/libpod; install via `dnf install podman-docker`)
and https://github.com/containers/podman-compose/) via `pip3 install podman-compose`;
it's more secure (because it doesn't need a daemon and root to run containers).
2019-10-12 00:40:04 +02:00
conradspandMichael Vorburger ⛑️ b8dadd0419 Added license, moved db init file 2019-06-29 15:38:33 +02:00
conradspandMichael Vorburger ⛑️ 7574daf79e Change port from 443 to 8443 2019-06-29 15:38:33 +02:00
conradspandMichael Vorburger ⛑️ 21cc14c9f2 Simplify docker process - run from root directory 2019-06-29 15:38:33 +02:00