Commit Graph
5052 Commits
Author SHA1 Message Date
Steve ConradandGitHub 9c9266fa5a Merge pull request #643 from vorburger/docker-compose-selinux
Add Z,ro flags to Docker Compose Volume
2019-10-12 09:59:08 -05: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
Awasum YannickandGitHub 608317ef52 Merge pull request #634 from vorburger/travis-skip-clean
remove clean in .travis.yml
2019-09-18 08:44:22 +01:00
Michael Vorburger.ch b059afda32 remove clean in .travis.yml 2019-09-17 20:18:22 +02:00
Courage AngehandGitHub 71b456c254 Merge pull request #619 from vorburger/IntegrationTest-Utils-await-health
make integrationTest await application health readyness
2019-09-07 10:08:02 -04:00
Awasum YannickandGitHub d0d4b623dd Merge pull request #635 from vorburger/develop
bump Gradle version from 5.2.1 to 5.6.1
2019-09-05 23:36:45 +01:00
Awasum YannickandGitHub d9e373e0b8 Merge pull request #633 from vorburger/travis-skip-integration-test-if-test-fails
fix .travis.yml so that integrationTest does not run if test already failed
2019-09-05 23:24:20 +01: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
Sven EfftingeandMichael Vorburger ⛑️ 6d26db553b added gitpod config 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
Courage AngehandGitHub 3d111b44bd Merge pull request #625 from Anh3h/docker-updates
Update Dockerfile to use user-provided MySQL IP
2019-07-31 19:12:12 -04:00
Anh3h 9d9ccfc76b Update Dockerfile to use user-provided MySQL IP 2019-07-29 10:23:27 -04:00
Angel CajasandGitHub 4d3d37c5e2 Merge pull request #614 from mohitsinha/new-develop
Stop creating unnecessary overdue charge when amount is 0.
2019-07-24 10:53:26 -06:00
Mohit Sinha fa6794c22c Stop creating unnecessary overdue charge when amount is 0 2019-07-24 20:26:28 +07:00
Steve ConradandGitHub 800287b48f Merge pull request #618 from vorburger/add-SpringBoot-Actuator
add spring-boot-starter-actuator dependency
2019-07-23 09:28:06 -05:00
Steve ConradandGitHub 1110df80c3 Merge pull request #624 from vorburger/FINERACT-771_Dockerfile
use multi-stage build in Dockerfile (fixes FINERACT-771)
2019-07-23 08:28:50 -05: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
Mohit SinhaandMichael Vorburger ⛑️ eee2841b5c FINERACT-780: Unique id for hook test 2019-07-23 09:18:58 +02:00
Awasum YannickandGitHub 908c5e3ad0 Merge pull request #608 from vorburger/bump-OpenJPA-Version
bump OpenJPA version from 2.4.1 to 2.4.3 for Java 11 compliance
2019-07-16 14:55:51 +01:00
Steve ConradandGitHub f517f53b63 Merge pull request #620 from vorburger/bval-scope-implementation
switch bval dependency from compile to implementation (see FINERACT-777)
2019-07-11 09:37:01 -05:00
Awasum YannickandGitHub b02a35c1f3 Merge pull request #621 from apache/README-DockerHub
add links to Docker Hub to README (badges & text)
2019-07-11 10:05:07 +01: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
Michael Vorburger.ch bcef09d7be upgrade OpenJPA 2.4.1 to 2.4.3
because 2.4.1 was not yet Java 11 compatible (due to an old ASM)

I'd like to upgrade to Java 11 soon-ish, and am starting to experiment with it.
2019-07-11 08:41:36 +02:00
Michael Vorburger ⛑️andGitHub 04efaca1ca Merge pull request #525 from vorburger/bump-gradle-wrapper
FINERACT-700: upgrade Gradle from 2.10 to 5.2.1
2019-07-11 08:28:54 +02:00
Michael Vorburger.ch 2fc98df21c fix ClassCircularityError: java/util/logging/LogRecord (see FINERACT-700 for details) 2019-07-10 23:47:51 +02:00
Michael Vorburger ⛑️andGitHub 9f0147d7d0 Merge branch 'develop' into bump-gradle-wrapper 2019-07-10 18:45:21 +02:00
Steve ConradandGitHub 9d286266df Merge pull request #607 from vorburger/OpenJPA-but-not_all_fatjar
use openjpa (with real dependencies) instead of shaded openjpa-all
2019-07-10 09:37:26 -05:00
Michael Vorburger.ch 46a9da6c9b silence Spring Boot Actuator Audit INFO logging (fixes FINERACT-779) 2019-07-10 10:28:21 +02:00
Michael Vorburger.ch e2b2e66610 fix integrationTest (=> runWar) which broke in Gradle upgrade
inspired by (but not exactly like) the respective section on
https://github.com/bmuschko/gradle-tomcat-plugin#faq
2019-07-09 22:09:11 +02:00
Michael Vorburger.ch 6eae392805 add spring-boot-starter-actuator dependency
see https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-endpoints.html
2019-07-09 21:05:53 +02:00
Michael Vorburger.ch 9a4cb83bd5 upgrade gradle-tomcat-plugin from 1.0 to 2.5 (NOK) 2019-07-09 18:18:13 +02:00
Michael Vorburger.ch b54a11da9b fix gradle createDB/dropDB/setBlankPassword
which broke during the Gradle upgrade in FINERACT-700

do not fix Flyway related migrateTenantDB & Co, as those
are proposed to be removed in FINERACT-765 anyway.  (If really
needed, some of my other WIP branches have the required changes
to make the Flyway related tasks work.)
2019-07-09 10:04:03 +02:00
Michael Vorburger.ch 6f58b30fd8 gradle.properties with -Xmx4g and disabling daemon
because the (new, upgraded) Tomcat Gradle plugin needs more memory
(and this seems to make the build a bit faster, may be less is fine),
and it does not work with the Gradle daemon; this fixes:

> Task :tomcatRunWar
Failed to initialize end point associated with ProtocolHandler ["http-bio-8080"]
Failed to initialize connector [Connector[HTTP/1.1-8080]]
Failed to initialize end point associated with ProtocolHandler ["ajp-bio-8009"]
Failed to initialize connector [Connector[AJP/1.3-8009]]
Failed to initialize end point associated with ProtocolHandler ["http-bio-8443"]
Failed to initialize connector [Connector[HTTP/1.1-8443]]

which appears on the 2nd (only!) run of `./gradlew tomcatRunWAR`
(because the Tomcat embedded in the previous daemon-ized Gradle did not stop).
2019-07-09 10:04:03 +02:00
Michael Vorburger fd74931390 upgrade (switch) OpenJPA Gradle plugin (FINERACT-700)
from at.schmutterer.oss.gradle:gradle-openjpa
to com.radcortez.gradle:openjpa-gradle-plugin

due to https://github.com/schmutterer/gradle-openjpa/issues/8
2019-07-09 10:04:03 +02:00
Michael Vorburger 1ee141bb87 upgrade spring-boot-gradle-plugin, and deal with impacts (FINERACT-700)
because the old one previously used caused an UnsupportedOperationException
with the new Gradle, see https://issues.apache.org/jira/browse/FINERACT-700

The spring-jms and activemq-broker versions are set to what they were on before.
2019-07-09 10:02:13 +02:00
Michael Vorburger 84d57dbe5b upgrade Gradle version, and deal with impacts (FINERACT-700)
https://discuss.gradle.org/t/could-not-get-unknown-property-classesdir-for-main-classes-of-type-org-gradle-api-internal-tasks-defaultsourcesetoutput/30570

https://discuss.gradle.org/t/gradle-4-replacing-deprecated-test-testclassesdir/22822/2

https://discuss.gradle.org/t/could-not-find-method-leftshift-for-arguments-on-task-of-type-org-gradle-api-defaulttask/30614
2019-07-09 09:52:37 +02:00
Michael Vorburger.ch a87b3a0a4d use openjpa (with real dependencies) instead of shaded openjpa-all 2019-07-09 09:48:18 +02:00
Steve ConradandGitHub d22ed87276 Merge pull request #617 from vorburger/javax.validation.constraints-instead-org.apache.bval.constraints
replace Apache BVal @NotEmpty annotation by javax.validation (re. FINERACT-777)
2019-07-08 08:26:53 -05:00
Michael Vorburger.ch 8bdc134a8e replace Apache BVal @NotEmpty annotation by javax.validation (re. FINERACT-777) 2019-07-08 09:48:01 +02:00
Vishwas Babu A JandGitHub cd839953e1 Merge pull request #596 from vorburger/enable-TemplateMergeServiceTest-compileHelloTemplate
re-enable commented out TemplateMergeServiceTest.compileHelloTemplate (which actually passes)
2019-07-08 09:28:27 +05:30
Vishwas Babu A JandGitHub 624015acaa Merge pull request #613 from vorburger/FINERACT-765_rm-flyway-from-gradle
remove Flyway completely from Gradle build (fixes FINERACT-765)
2019-07-08 09:27:30 +05:30
Awasum YannickandGitHub c04851cd21 Merge pull request #597 from vorburger/rm-WebContent/META-INF/MANIFEST.MF
clean-up rm WebContent/META-INF/MANIFEST.MF
2019-07-07 22:44:39 +01:00
Awasum YannickandGitHub 41f683cfb1 Merge pull request #612 from vorburger/deactivate-FindBugs-PMD
comment out PMD & FindBugs
2019-07-07 22:43:15 +01:00