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.
This commit is contained in:
+2
-1
@@ -62,4 +62,5 @@ script:
|
||||
# @see https://docs.travis-ci.com/user/job-lifecycle/#customizing-the-build-phase
|
||||
- ./gradlew --console=plain licenseMain licenseTest licenseIntegrationTest test && ./gradlew --console=plain integrationTest
|
||||
# We must stop mysql the mysql system service to avoid port 3306 conflicts (unless we run the mysql in docker-compose on another port; req. FINERACT-773)
|
||||
- sudo service mysql stop && docker-compose build && docker-compose up -d && sleep 30s && http --verify=no --timeout 240 --check-status get https://localhost:8443/fineract-provider/actuator/health
|
||||
- sudo service mysql stop && docker-compose build && docker-compose up -d && sleep 30s && http --verify=no --timeout 240 --check-status get https://localhost:8443/fineract-provider/actuator/health || docker logs fineract_fineract-server_1
|
||||
# The || docker logs lets use see the root cause in case of failures
|
||||
|
||||
Reference in New Issue
Block a user