FINERACT-1791

This commit is contained in:
Vic Romero
2022-10-29 11:53:45 +02:00
committed by Aleksandar Vidakovic
parent 1c944dd830
commit f2756b25bb
8 changed files with 11 additions and 15 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ ports:
tasks: tasks:
- command: | - command: |
# NB MySQL on GitPod.io is currently quite slow. # NB MySQL on GitPod.io is currently quite slow.
# similar to .travis.yml, but using authentication_string= instead of password= due to mysql major version difference # Using authentication_string= instead of password= due to mysql major version difference
mysql -e "USE mysql;\nUPDATE user SET authentication_string=PASSWORD('mysql') WHERE user='root';\nFLUSH PRIVILEGES;\n" mysql -e "USE mysql;\nUPDATE user SET authentication_string=PASSWORD('mysql') WHERE user='root';\nFLUSH PRIVILEGES;\n"
./gradlew createDB -PdbName=fineract_tenants ./gradlew createDB -PdbName=fineract_tenants
./gradlew createDB -PdbName=fineract_default ./gradlew createDB -PdbName=fineract_default
+5 -5
View File
@@ -20,16 +20,16 @@ If you are interested in contributing to this project, but perhaps don't quite k
Requirements Requirements
============ ============
* Java >= 17 (OpenJDK JVM is tested by our CI on Travis) * Java >= 17 (Azul Zulu JVM is tested by our CI on GitHub Actions)
* MariaDB 10.6 * MariaDB 10.9
You can run the required version of the database server in a container, instead of having to install it, like this: You can run the required version of the database server in a container, instead of having to install it, like this:
docker run --name mariadb-10.8 -p 3306:3306 -e MARIADB_ROOT_PASSWORD=mysql -d mariadb:10.8 docker run --name mariadb-10.9 -p 3306:3306 -e MARIADB_ROOT_PASSWORD=mysql -d mariadb:10.9
and stop and destroy it like this: and stop and destroy it like this:
docker rm -f mariadb-10.8 docker rm -f mariadb-10.9
Beware that this database container database keeps its state inside the container and not on the host filesystem. It is lost when you destroy (rm) this container. This is typically fine for development. See [Caveats: Where to Store Data on the database container documentation](https://hub.docker.com/_/mariadb) re. how to make it persistent instead of ephemeral. Beware that this database container database keeps its state inside the container and not on the host filesystem. It is lost when you destroy (rm) this container. This is typically fine for development. See [Caveats: Where to Store Data on the database container documentation](https://hub.docker.com/_/mariadb) re. how to make it persistent instead of ephemeral.
@@ -145,7 +145,7 @@ Instructions to execute Integration Tests
============ ============
> Note that if this is the first time to access MySQL DB, then you may need to reset your password. > Note that if this is the first time to access MySQL DB, then you may need to reset your password.
Run the following commands, very similarly to how [.travis.yml](.travis.yml) does: Run the following commands:
1. `./gradlew createDB -PdbName=fineract_tenants` 1. `./gradlew createDB -PdbName=fineract_tenants`
1. `./gradlew createDB -PdbName=fineract_default` 1. `./gradlew createDB -PdbName=fineract_default`
1. `./gradlew clean test` 1. `./gradlew clean test`
+1 -2
View File
@@ -16,8 +16,7 @@
# under the License. # under the License.
# #
# NB: Travis CI (dist: bionic) supports up to v3.7 # You can replace and test a more recent version of docker compose
# (unless we'd install a more recent version in .travis.yml)
version: '3.7' version: '3.7'
services: services:
# Backend service # Backend service
+1 -2
View File
@@ -16,8 +16,7 @@
# under the License. # under the License.
# #
# NB: Travis CI (dist: bionic) supports up to v3.7 # You can replace and test a more recent version of docker compose
# (unless we'd install a more recent version in .travis.yml)
version: '3.7' version: '3.7'
services: services:
# Backend service # Backend service
+1 -2
View File
@@ -16,8 +16,7 @@
# under the License. # under the License.
# #
# NB: Travis CI (dist: bionic) supports up to v3.7 # You can replace and test a more recent version of docker compose
# (unless we'd install a more recent version in .travis.yml)
version: '3.7' version: '3.7'
services: services:
# Backend service # Backend service
@@ -2,7 +2,6 @@
**/pom.xml **/pom.xml
**/build.sbt **/build.sbt
**/*.gradle **/*.gradle
**/.travis.yml
**/.gitignore **/.gitignore
**/git_push.sh **/git_push.sh
**/api/* **/api/*
+1 -1
View File
@@ -90,7 +90,7 @@ distributions {
distributionBaseName = 'apache-fineract-src' distributionBaseName = 'apache-fineract-src'
contents { contents {
from "$rootDir/" from "$rootDir/"
exclude '**/build' , '.git', '**/.gradle', '.github', '**/.settings', '**/.project', '**/.classpath', '.idea', 'out', '._.DS_Store', '.DS_Store', 'WebContent', '**/.externalToolbuilders', '.theia', '.gitpod.yml', '.travis.yml', 'LICENSE_RELEASE', 'NOTICE_RELEASE', '**/licenses', '*.class', '**/bin', '*.log', '.dockerignore', '**/.gitkeep' exclude '**/build' , '.git', '**/.gradle', '.github', '**/.settings', '**/.project', '**/.classpath', '.idea', 'out', '._.DS_Store', '.DS_Store', 'WebContent', '**/.externalToolbuilders', '.theia', '.gitpod.yml', 'LICENSE_RELEASE', 'NOTICE_RELEASE', '**/licenses', '*.class', '**/bin', '*.log', '.dockerignore', '**/.gitkeep'
rename ('LICENSE_SOURCE', 'LICENSE') rename ('LICENSE_SOURCE', 'LICENSE')
rename ('NOTICE_SOURCE', 'NOTICE') rename ('NOTICE_SOURCE', 'NOTICE')
} }
+1 -1
View File
@@ -86,7 +86,7 @@ spec:
tier: fineractmysql tier: fineractmysql
spec: spec:
containers: containers:
- image: mariadb:10.6 - image: mariadb:10.9
name: mysql name: mysql
resources: resources:
requests: requests: