Commit Graph
100 Commits
Author SHA1 Message Date
Michael Vorburger edfcb931e9 Gradle testLogging exceptionFormat "full" (FINERACT-927)
as well as integrationTest --fail-fast
2020-05-05 10:52:02 +02:00
Michael Vorburger b6c6d50501 fix moar 3rd-party versions in build.gradle (see FINERACT-805) 2020-05-04 03:00:31 +02:00
Michael Vorburger ⛑️andGitHub d33e0ba72a add new /echo debug API endpoint (FINERACT-915) (#797) 2020-05-03 22:34:37 +01:00
Michael Vorburger c4797ab96b more clean up in SchedulerJobsTest (re. FINERACT-922)
This does NOT, yet, fix FINERACT-922, but it splits the old test into
new smaller test methods, which (hopefully) should always pass, except
for the last one.
2020-05-03 20:22:54 +02:00
Michael Vorburger 404f055b65 remove old spring-jms:4.0.7 & fix JMS dependencies (FINERACT-805) 2020-05-03 19:52:12 +02:00
Michael Vorburger 83cdb17d8f exclude dependencies causing classpath duplicates (FINERACT-919) 2020-05-03 19:52:12 +02:00
Michael Vorburger.ch b0367099bc add classpath duplicates detection test (FINERACT-919) 2020-05-03 19:52:12 +02:00
Michael Vorburger 2212675af4 second step to clean up in SchedulerJobsTest (re. FINERACT-922)
do more un-static-ify SchedulerJobHelper

This does NOT, yet, fix FINERACT-922.
2020-05-03 19:49:27 +02:00
Michael Vorburger 85bf8dc3e9 first step to clean up in SchedulerJobsTest (preparing for FINERACT-922)
make two methods in SchedulerJobHelper private

and start to un-static-ify SchedulerJobHelper

This does NOT, yet, fix FINERACT-922.
2020-05-03 19:49:27 +02:00
Michael Vorburger ⛑️ 62214ea1f7 add (obvious) rebase step to PR Help in README 2020-05-03 12:23:11 +02:00
Michael Vorburger 1e2e88c8bb add @Ignore to another SchedulerJobsTestResults method (FINERACT-857)
testUpdateOverdueDaysForNPA()
2020-05-03 05:52:06 +02:00
Michael Vorburger c9f2591766 Upgrade Jersey library from 1.17 to 1.19.4 (FINERACT-920) 2020-05-03 03:12:15 +02:00
Michael Vorburger 7fe9d2bcbf use throw instead of confusing return null inside catch
in JournalEntryWritePlatformServiceJpaRepositoryImpl
2020-05-03 00:07:49 +02:00
Michael Vorburger 8418dd424f upgrade OpenJPA from 3.1.0 to 3.1.1 (FINERACT-908) 2020-05-02 22:42:10 +02:00
Michael Vorburger 1baecf27f6 add @Ignore to another SchedulerJobsTestResults methods (FINERACT-857)
testUpdateLoanPaidInAdvanceJobOutcome()
2020-05-02 22:39:58 +02:00
Michael Vorburger 89fdc804f0 add @Ignore to more SchedulerJobsTestResults methods (FINERACT-857)
testUpdateAccountingRunningBalancesJobOutcome()
testTransferFeeForLoansFromSavingsJobOutcome()
2020-05-02 20:55:00 +02:00
Michael Vorburger c579086af0 change community-app port in docker compose from 80 to 9090 (FINERACT-845)
This makes it much easier and more secure to use it "rootless",
e.g. with https://podman.io's podman-compose instead (Moby) Docker.

Also includes minor README improvements useful for beginners.
2020-05-02 14:17:58 +02:00
Michael Vorburger 6e91a091f3 add @Ignore to another SchedulerJobsTestResults methods (FINERACT-857)
testApplyDueFeeChargesForSavingsJobOutcome()
2020-05-02 12:22:36 +02:00
Michael Vorburger ede38dc8fa add @Ignore to another ClientLoanIntegrationTest method (FINERACT-885)
loanWithFlatCahargesAndPeriodicAccrualAccountingEnabled()
2020-04-26 18:41:27 +02:00
Michael Vorburger ⛑️ d3aebf570e add link to Web UIs, Mobile App, and fineract.dev 2020-04-26 17:26:13 +02:00
Michael Vorburger ⛑️ 09fd882c72 add Policy re. unstable tests to README 2020-04-26 16:59:28 +02:00
Michael Vorburger 348d5bc855 add @Ignore to more ClientLoanIntegrationTest methods (FINERACT-885)
loanWithCahargesOfTypeAmountPercentageAndPeriodicAccrualAccountingEnabled()
loanWithCahargesOfTypeAmountPlusInterestPercentageAndPeriodicAccrualAccountingEnabled()
2020-04-26 16:55:56 +02:00
Michael Vorburger a1815c1b51 add @Ignore in AccountingScenarioIntegrationTest (FINERACT-899)
checkPeriodicAccrualAccountingFlow()
2020-04-26 16:55:56 +02:00
Michael Vorburger 4b724c2917 add @Ignore to flaky method in ClientLoanIntegrationTest (FINERACT-885)
testLoanScheduleWithInterestRecalculation_WITH_REST_DAILY_INTEREST_COMPOUND_INTEREST_FEE_STRATEGY_WITH_OVERDUE_CHARGE()
2020-04-26 12:51:27 +02:00
Michael Vorburger ⛑️andGitHub fd9a1ba1be add @Ignore to flaky method in RecurringDepositTest (FINERACT-855) (#783)
testRecurringDepositAccountWithPrematureClosureTypeReinvest()
2020-04-26 11:12:13 +01:00
Michael Vorburger ⛑️andGitHub d59ed17d97 replace long outdated '0.4.0-incubating' in API Docs by simply 'Fineract' (#776) 2020-04-22 09:55:54 +01:00
Michael Vorburger 212cd679e9 Ignore :( flaky :( AccountingScenarioIntegrationTest (FINERACT-899)
both checkPeriodicAccrualAccountingFlow_OVER_PAYMENT()
as well as checkPeriodicAccrualAccountingTillCurrentDateFlow()
but not the others
2020-04-18 23:07:24 +02:00
Michael Vorburger ⛑️andGitHub 005cc2129a remove JAVA_OPTS from docker-compose.yml (FINERACT-900) (#773) 2020-04-18 06:26:45 +01:00
Michael Vorburger 1c74398d90 add MySQL JDBC Driver (LGPL) to Dockerfile + doc (fixes FINERACT-762)
Note that it is NOT enabled by default, which should be OK for the ASF.

The main point here is just to clearly document it for end-users.

I've obviously tried out what's documented, and can confirm it works.
2020-04-18 01:46:56 +02:00
Michael Vorburger 64e02bc123 comment out broken MySQL JDBC driver logger (awaiting FINERACT-890) 2020-04-18 01:46:56 +02:00
Michael Vorburger ⛑️andGitHub c7b58b9869 escape all grouping in SQL files for MySQL 8 compatibility (#757)
Indirectly related to FINERACT-762 - not sure if strictly required,
but seems like a good idea anyway at this opportunity, so why not.

As originally on https://github.com/apache/fineract/pull/638/files
2020-04-17 22:40:42 +01:00
Michael Vorburger 059d1bebe7 comment out flaky testSavingsAccount_DormancyTracking (FINERACT-852) 2020-04-17 19:37:28 +02:00
Michael Vorburger a5b35b8d31 clean-up to remove apparently unused PORT ENV (related to FINERACT-762)
This environment variable is actually never used.  The port of a Tenant
DB instead appears to be read from schemaServerPort of the
tenant_server_connections table.
2020-04-17 19:09:24 +02:00
Michael Vorburger f1c7a7b4bc add DRIVERCLASS_NAME, PROTOCOL, SUB_PROTOCOL to docker-compose.yml
These are the default values, from jdbc.properties, only added for
clarity and to make it obvious that they need to be changed e.g. for
FINERACT-762.

The different formats and naming conventions are a little bit of a mess,
but changing them now leads to backwards incompatibility, so for now
let's leave as is; possible clean up later in FINERACT-889.
2020-04-15 17:58:36 +02:00
Michael Vorburger 519dd204d8 set fineract_tenants_* more nicely in docker-compose.yml
We can use environment variables instead of system properties.

We originally had to use system properties and could not use environment
variables, because these used to read by Tomcat, but since the switch
to Hikari in FINERACT-796 these are read by Spring Boot instead of
Tomcat, so we can now use system properties.

This both "looks nicer" and is useful e.g. for FINERACT-881.
2020-04-15 17:58:36 +02:00
Michael Vorburger ⛑️andGitHub 9517051340 comment out flaky SchedulerJobsTest (FINERACT-852) (#764)
Also adds a new assertion for a clearer failure message than the
confusing low-level technical ArrayIndexOutOfBoundsException for
whenever this test will be re-activated later.
2020-04-15 10:36:46 +01:00
Michael Vorburger ⛑️andGitHub fd7fa63002 improve ClientSavingsIntegrationTest error reporting (FINERACT-852) (#765)
Adds a new assertion for a hopefully clearer failure message than the
confusing low-level technical ArrayIndexOutOfBoundsException we
regularly hit on Travis CI.

Similar to https://github.com/apache/fineract/pull/764
2020-04-15 09:34:33 +01:00
Michael Vorburger c9a1b38b0e chmod +x kubernetes/*.sh (and some README updates) 2020-04-12 13:37:47 +02:00
Michael Vorburger 09d0cfaa52 Remove AbstractPersistableCustom's PK parameterization
Because both are pointless, as the PK @Id is hard-coded to Long anyway,
and the U is (rightfully) fixed to always be an AppUser here.
2020-04-07 23:46:20 +02:00
Michael Vorburger dccea1d65e add @Transient to AbstractPersistableCustom isNew()
see https://jira.spring.io/browse/DATAJPA-622

Even though we don't use Hibernate, copying this annotation from the
original class in Spring Data seems prudent - just in case.  It should
not cause any harm or side effects on OpenJPA.
2020-04-07 23:46:20 +02:00
Michael Vorburger ae4117052b add missing doc to AbstractPersistableCustom & AbstractAuditableCustom 2020-04-07 23:46:20 +02:00
Michael Vorburger ⛑️andGitHub a0a82a0748 add link to Release Process page on Wiki to README 2020-04-06 12:03:11 +02:00
Michael Vorburger ⛑️ 4ccbcba3a6 add Eclipse Checkstyle plugin tip to README 2020-03-29 13:13:29 +02:00
Michael Vorburger 53e8658d74 apply Hikari's recommended MySQL Configuration (FINERACT-796)
from https://github.com/brettwooldridge/HikariCP/wiki/MySQL-Configuration
and https://github.com/brettwooldridge/HikariCP/wiki/JDBC-Logging#mysql-connectorj
2020-03-28 17:58:39 +01:00
Michael Vorburger 5f2ba51f5a Minor clean ups in DataSource Connection Pool related code 2020-03-28 17:58:39 +01:00
Michael Vorburger 99794914a5 Fix wrong @OneToOne to @ManyToOne in AbstractAuditableCustom 2020-03-28 15:07:28 +01:00
Michael Vorburger b1eb62f221 fix broken build due to small logging error detected by SpotBugs
significant reformatting due to Eclipse auto-save action (someone really
needs to finish the Checkstyle uniform formatting)

see https://github.com/apache/fineract/pull/592
2020-03-15 11:05:30 +01:00
Michael Vorburger 1b1e80b6b1 Log errors from cron jobs individually and with cause (FINERACT-858)
instead of current huge JobExecutionException message (without cause)
2020-03-10 17:10:01 +01:00
Michael Vorburger ⛑️andGitHub 0c9273a11b throw exception with details in InteropServiceImpl (FINERACT-860) (#728)
instead of the NoSuchElementException from Optional.get(), we're now
throwing an UnsupportedOperationException which includes the details of
the missing object.  (This kind of detailed exception was already thrown
in two existing places in the same code after a null check, but it never
reached there, because the Optional.get() failed earlier.  Another
option would have been to return null for an absent Optional, but this
is better.)

The other unrelated changes are automatic clean up actions (in Eclipse).
2020-03-10 12:29:07 +01:00
Michael Vorburger 753554e281 Fix audit trails filter (FINERACT-808)
As per the great analysis by Manthan Surkar (@thesmallstar) in the
original PR https://github.com/apache/fineract/pull/723, the cause of
the FINERACT-808 bug was that "the backend would treat "UPDATE" and
similar strings as SQL injection".

The root cause of that was that (IMHO..) how Fineract does SQL injection
is more of a workaround (blacklisting some keywords and some heuristic
checks) then how this really should be done (by using JDBC Prepared
statements with arguments for all external data, instead inlined SQL).

This also lays the foundation for more like this in FINERACT-854.
2020-03-10 11:36:49 +01:00
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 ⛑️andGitHub c6b2c09032 COPY only the minimal required files to build in the Dockerfile (#712)
This speeds up e.g. "podman-compose build" for me from 5m to 4m.

BEFORE:
real	5m29.884s
user	4m17.643s
sys	    2m57.567s

AFTER:
real	4m19.458s
user	3m13.815s
sys	    2m 3.095s
2020-02-09 19:35:27 +01:00
Michael Vorburger ⛑️andAwasum Yannick 28db242884 Activate and Enforce new Checkstyle check related to import statement order (FINERACT-821) (#704)
* Minor manually done fix up of fineractdev-eclipse-preferences.epf file

This in theory should not change anything about the conventions,
it's just a first manual clean up of this very old file here.

The few extra new lines are what I found when exporting Preferences.

Related to https://issues.apache.org/jira/browse/FINERACT-821

* fineractdev-eclipse-preferences.epf imported and re-exported in Eclipse.

This in theory should not change anything about the conventions, as
presumably Eclipse during an Import and re-Export of an EPF just adds
new settings, and perhaps removes old settings.  I've not actually made
any manual changes in Preferences in this step.

Related to https://issues.apache.org/jira/browse/FINERACT-821

* fineractdev-eclipse-preferences.epf "import" in line with Checkstyle

The non-import related Code Formatter settings may need further tuning;
this will be done in future changes; the focus in this round is on
import.

Related to https://issues.apache.org/jira/browse/FINERACT-821

* Use Eclipse's Source > Organize Import to re-order all import statements

This uses the fineractdev-eclipse-preferences.epf from the previous
commit, which just so happens ;) to exactly match the expected import
rules which the next commit is going to enforce using Checkstyle.

This is of course not specific to only Eclipse per se; other IDEs can
be similarly configured to match these coding conventions; I just happen
to have used Eclipse.

Related to https://issues.apache.org/jira/browse/FINERACT-821

* Activate and Enforce all Checkstyle import related new checks

and update the README to explain Checkstyle, and the availability of the
Eclipse Preferences configuration file which matches the import
code format conventions which are now enforced.

Contributions for a similar preferences file for other IDEs welcome! ;)

Related to https://issues.apache.org/jira/browse/FINERACT-821
2020-01-28 00:28:11 +01:00
Michael Vorburger ⛑️andAwasum Yannick 3a17da44df Activate and Enforce Checkstyle EqualsHashCode check. (#703)
Thanks to prior work for SpotBugs, this passes without requiring any
code adjustments.  (Fineract had a nubmer of problems in this space
before the SpotBugs work.)

Enabling this helps to ensure non-regression so that no new equals() and
hashCode() related bugs creep in.  (This does overlap a little bit with
SpotBugs, but the build time overhead to run the extra check is
completely negligible, so it seems worth having this.  If only just in
case SpotBugs for whatever reason in the future would get deactivated
again.)
2020-01-27 22:02:41 +01:00
Michael Vorburger ⛑️andAwasum Yannick 14175a1854 Minor: Remove comment in build.gradle re. springDataJpaVersion (#702)
This has been removed in a20f76d686,
and it's confusing to look for what that means, e.g. while code
reviewing proposed "bump" changes to the used versions of
spring.gradle:dependency-management-plugin and
springframework.boot:spring-boot-gradle-plugin.
2020-01-27 22:00:28 +01:00
Michael Vorburger ⛑️andGitHub 216566fcc1 Add link to mailing list to README 2020-01-23 19:55:11 +01:00
Michael Vorburger fbccc57fb9 enforce initial set of Checkstyle rules (FINERACT-821)
This is, intentionally, for whitespace related rules, only.

The idea is to now gradually extend it.
2020-01-19 19:59:38 +01:00
Michael Vorburger dd7503f296 remove all trailing spaces in Java files (FINERACT-821)
find . -type f -name "*.java" -exec sed -i 's/ *$//' '{}' ';'
2020-01-19 19:58:21 +01:00
Michael Vorburger b0196049f1 replace 51013 Tabs with 4 Spaces in 3122 Java files (FINERACT-821)
rpl -eRxjava "\t" "    " .
2020-01-19 19:58:21 +01:00
Michael Vorburger 68006ae8f2 convert all Java files from DOS to UNIX line ending (FINERACT-821)
find . -type f -name "*.java" -exec dos2unix '{}' ';'
2020-01-19 19:58:21 +01:00
Michael Vorburger 125924303b Temporarily remove the build realted Swagger changes (FINERACT-733)
as well as implement all review feedback provided on the original PR

see https://github.com/apache/fineract/pull/629 for background

also https://jira.apache.org/jira/browse/FINERACT-733
2020-01-19 15:24:11 +01:00
Michael Vorburger b0dce97b82 fix broken Dockerfile build (FINERACT-833) 2020-01-19 14:25:19 +01:00
Michael Vorburger ⛑️andGitHub 091710e8dd Minor typo fix in rebase.yml (FINERACT-829)
porting https://github.com/cirrus-actions/rebase/pull/31

https://issues.apache.org/jira/browse/FINERACT-829
2020-01-14 09:40:16 +01:00
Michael Vorburger ⛑️andMichael Vorburger ⛑️ 653b0b76dd add /rebase comment support for Pull Requests
https://github.com/marketplace/actions/automatic-rebase

https://github.com/cirrus-actions/rebase
2020-01-14 08:40:10 +01:00
Michael Vorburger ⛑️andMichael Vorburger ⛑️ 54b7ddf210 add GitHub Action to autoclose stale pull requests
It will automatically add a comment after 30 days, and then another 30 days later (so after a total of 60 days of inactivity) automatically close Pull Requests.

https://github.com/marketplace/actions/close-stale-issues
https://github.com/actions/stale/blob/master/action.yml
https://github.com/actions/stale
2020-01-14 08:26:49 +01:00
Michael Vorburger 0379ba7628 fix build.gradle for RAT to ignore .github/workflows/ 2020-01-13 09:53:24 +01:00
Michael Vorburger 6ca1a678cb more SpotBugs related / inspired code clean up (see FINERACT-702)
based upon code review of changes made by @awasum in previous commit:

 - fix clear contains() GC_UNRELATED_TYPES bug in Loan

 - fix clear equals() EC_UNRELATED_TYPES bug in Loan

 - fix more equals() & hashCode() in...
    * Charge
    * TrialBalance
    * LoanProductBorrowerCycleVariations
    * LoanProductProvisioningEntry

 - fix AccountingConstants to avoid using @FindBugsSuppressWarnings

 - fix SelfLoansDataValidator instead of @FindBugsSuppressWarnings

 - minor clean up in build.gradle (spotbugs has replaced findbugs)

PS: This change originally included also fixing the missing hashCode()
    and equals() in ShareAccountCharge, but that turned out to be non
    trivial, see FINERACT-827, and is thus not yet fixed by this.
2020-01-13 08:41:16 +01:00
Michael Vorburger 4e1d87f20a fix broken docker-compose set up (re. FINERACT-773)
This fixed bugs introduced in edc9e030e1
(in https://github.com/apache/fineract/pull/648) which for FINERACT-773
actually broke things more instead of adding the intended feature, cauz:

1. FINERACT_DEFAULT_TENANTDB_HOSTNAME and FINERACT_DEFAULT_TENANTDB_PORT
   were meant to be OS Environment Variables, not Java System properties
   and so need to be read via System.getenv() not System.getProperty(),
   duh!

2. The Travis CI test which was meant to ensure non-regression for this
   broke in that same change, because the "|| docker logs" introduced at
   the same time would always pass (EITHER because "http" passed OR
   if not then "docker logs" would return 0), duh again!

Both were dumb, not sure what I was thinking when I had hacked this.. ;)
2020-01-12 20:44:22 +01:00
Michael Vorburger a5c60b06e5 clean up GLAccountBuilder, following SpotBugs (FINERACT-702)
SpotBugs didn't like the original version, and the initial changes made
for SpotBugs satisfied SpotBugs, but the class was still pretty weird.
This change makes it follow the regular standard builder pattern.
2020-01-12 13:23:26 +01:00
Michael Vorburger 89b996cf58 Revert changes made to LoanReschedulingWithinCenterTest (FINERACT-702)
@awasum changed this in the SpotBugs related work, but this seems both
wrong, and, for me, makes this test now fail instead of pass (even
though for him it passed on the original PR...).

Probably related to https://issues.apache.org/jira/browse/FINERACT-820;
note that my current local time as I'm testing this is Sunday, and it
WORKS with; I'm now confused when FINERACT-820 affects us and when not.
Or perhaps this has nothing at all to do with that.
2020-01-12 13:16:42 +01:00
Michael Vorburger 75f7c5947d add .project and .settings/ to .gitignore 2020-01-10 17:34:54 +01:00
Michael Vorburger a93a6b8487 Change /authentication API to pass data in request body instead of URL arguments (FINERACT-726) 2020-01-08 22:50:16 +01:00
Michael Vorburger ⛑️andGitHub 5bce2422e0 change .travis.yml to only run docker test if integration test passed 2019-12-14 15:51:49 +01:00
Michael Vorburger ⛑️ 030d9c8bd8 fix potential NPE in JobParameter.equals() (FINERACT-428) 2019-12-12 21:39:45 +00:00
Michael Vorburger ⛑️andGitHub cc181b5742 reset/verify all default global configurations in some integration tests (PR #671 for FINERACT-722)
Remove necessary resetting of 2 select default global configurations in FlexibleSavingsInterestPostingIntegrationTest.

Fixes issue where global configurations were affecting state between integration tests. This caused LoanReschedulingWithinCenterTest to fail on the first day of the month only because the "skip-repayment-on-first-day-of-month" configuration was modified but never reset by GlobalConfigurationTest.

Also updated other integration tests to reset and verify default global configurations.

FINERACT-722
2019-12-12 09:21:45 +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 ⛑️andGitHub 01518b0f32 Delete .response.json.swp 2019-11-25 20:52:13 -08:00
Michael Vorburger ⛑️ f255a597f8 add .theia/settings.json to avoid confusing prompt on http://gitpod.io
and exclude JSON files from RAT (because they cannot contain license header comments)
2019-11-25 07:44:37 +01:00
Michael Vorburger 8c65696d49 reduce excessive logging causing Travis CI problems (FINERACT-800) 2019-11-25 07:44:37 +01:00
Michael Vorburger 2c733283c7 reduce excessive logging causing Travis CI problems (FINERACT-800) 2019-11-25 07:31:50 +01:00
Michael Vorburger ⛑️andGitHub a9858b1145 Merge pull request #653 from awasum/spring-boot-2.1.7-upgrade
upgrade Spring Framework dependencies (FINERACT-724)

reviewed on https://github.com/apache/fineract/pull/642 
and https://github.com/apache/fineract/pull/653
2019-11-24 12:11:14 -08:00
Michael Vorburger 23c3f23e12 sleep 30s instead of 5s before attempting to httpie 2019-10-21 09:45:23 +02:00
Michael Vorburger 1aee1ef6a8 install httpie in .travis.yml for docker-compose test 2019-10-21 09:45:23 +02:00
Michael Vorburger a06c008cc3 Stop mysql system service before docker-compose on Travis CI 2019-10-21 09:45:23 +02:00
Michael Vorburger 479d6e0e81 docker-compose.yml version 3.3 instead of 3.7 2019-10-21 09:45:23 +02:00
Michael Vorburger 1b6c202ddc Add docker-compose non-regression test to Travis CI 2019-10-21 09:45:23 +02:00
Michael Vorburger 1bf357171a Minor doc improvements re. Docker in README 2019-10-14 13:19:17 +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
Michael Vorburger.ch b059afda32 remove clean in .travis.yml 2019-09-17 20:18:22 +02:00
Michael Vorburger.ch 06ed8468b8 fix .travis.yml so that integrationTest does not run if test already failed 2019-09-04 22:26:53 +02:00
Michael Vorburger.ch 8a40c6f40f bump Gradle version from 5.2.1 to 5.6.1
all changed/new files have been created by:

./gradlew wrapper --gradle-version=5.6.1 --distribution-type=bin
2019-09-04 22:22:48 +02:00
Michael Vorburger.ch c90888f1bb tweak .gitpod.yml and add https://gitpod.io badge to README
- add ASL header (required by ASF RAT)
- change port to 8080 (TODO what was 8005 ?)
- add commands to create DBs
- fix .gitpod.yml database creation
- refine ports in .gitpod.yml
- add port 8081 to ignore in .gitpod.yml
- use test instead of (too slow) integrationTest in .gitpod.yml
- fix .gitpod.yml
  by using https://yaml-multiline.info to fix start-up problem
  due to comment inside tasks / command; ACK Tx to @meysholdt
  for pointing out the right trick here.

see https://github.com/apache/fineract/pull/598/
2019-09-04 22:09:41 +02:00
Michael Vorburger.ch 89334bdb95 make integrationTest await application health readyness
This was an idea I had when wondering if the problem we hit
during the Gradle upgrade was just that Tomcat took longer to
boot Fineract (it turned out that that wasn't the cause).

I'm not sure if gradle-tomcat-plugin already does the equivalent
(but suspect it does not), but given that integrationTests work,
not entirely clear how much value this really adds.

Given that it doesn't really hurt either, perhaps we can add it anyway.
2019-09-04 19:18:03 +02:00
Michael Vorburger.ch ea076cd5c6 put back the TZ (re. FINERACT-788)
always best to make only mininmal required change
2019-08-23 17:36:57 +02:00
Michael Vorburger ⛑️ 2fdd9d14b6 rm hardcoded system time from .travis.yml (fixes FINERACT-788) 2019-08-23 17:36:57 +02:00
Michael Vorburger ⛑️andGitHub c4301843bd link to FAQ from README 2019-08-22 09:25:29 +02:00
Michael Vorburger.ch f13c076862 rm git & JDK from Dockerfile
Now that we separated the build and runtime containers,
we can have only a JRE but not a JDK in the runtime container
(whereas the builder container will still have a JRE).

This makes for a smaller, and more importantly,
more secure, runtime container image.

Also removing git from runtime container, as it's not used.
2019-07-23 10:17:56 +02:00
Michael Vorburger.ch 81c1468fa4 use multi-stage build in Dockerfile (fixes FINERACT-771) 2019-07-23 10:12:25 +02:00
Michael Vorburger ⛑️andGitHub c5e7ae274a add links to Docker Hub to README (badges & text)
see https://issues.apache.org/jira/browse/INFRA-18673
2019-07-11 10:14:21 +02:00
Michael Vorburger.ch 8be550d077 switch bval dependency from compile to implementation (see FINERACT-777) 2019-07-11 08:46:35 +02:00