Make MifosX SPOC-compatible, cont'd

This commit is contained in:
Disassembler 2020-03-18 22:25:27 +01:00
parent 692571a7f8
commit 719b4e04b6
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
4 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@
set -ev set -ev
# Remove persistent data # Remove persistent data
rm -rf "${VOLUME_DIR}/kanboard" rm -rf "${VOLUMES_DIR}/kanboard"
# Unregister application # Unregister application
vmmgr unregister-app kanboard vmmgr unregister-app kanboard

View File

@ -14,7 +14,7 @@ RUN EOF
mv /tmp/fineractplatform-18.03.01.RELEASE/database/mifospltaform-tenants-first-time-install.sql /tmp/mifospltaform-tenants-first-time-install.sql mv /tmp/fineractplatform-18.03.01.RELEASE/database/mifospltaform-tenants-first-time-install.sql /tmp/mifospltaform-tenants-first-time-install.sql
# Download Java library dependencies # Download Java library dependencies
wget http://central.maven.org/maven2/org/drizzle/jdbc/drizzle-jdbc/1.4/drizzle-jdbc-1.4.jar -O /srv/tomcat/lib/drizzle-jdbc-1.4.jar wget https://repo1.maven.org/maven2/org/drizzle/jdbc/drizzle-jdbc/1.4/drizzle-jdbc-1.4.jar -O /srv/tomcat/lib/drizzle-jdbc-1.4.jar
# Cleanup # Cleanup
apk --no-cache del wget apk --no-cache del wget

View File

@ -10,7 +10,7 @@ MIFOSX_CONF="${VOLUMES_DIR}/mifosx/mifosx_conf"
install -o 100000 -g 100000 -m 755 -d ${MARIADB_CONF} install -o 100000 -g 100000 -m 755 -d ${MARIADB_CONF}
install -o 103306 -g 103306 -m 750 -d ${MARIADB_DATA} install -o 103306 -g 103306 -m 750 -d ${MARIADB_DATA}
install -o 100000 -g 100000 -m 644 mariadb_conf/my.cnf ${MARIADB_CONF}/my.cnf install -o 100000 -g 100000 -m 644 mariadb_conf/my.cnf ${MARIADB_CONF}/my.cnf
spoc-container exec mifosx-mariadb -- mysql_install_db --user=mysql --datadir=/var/lib/mysql --auth-root-authentication-method=socket --auth-root-socket-user=mysql --skip-test-db spoc-container exec -u 0 -g 0 mifosx-mariadb -- mysql_install_db --user=mysql --datadir=/var/lib/mysql --auth-root-authentication-method=socket --skip-test-db
# Create databases # Create databases
export MIFOSX_PWD=$(head -c 18 /dev/urandom | base64 | tr -d '+/=') export MIFOSX_PWD=$(head -c 18 /dev/urandom | base64 | tr -d '+/=')
@ -28,7 +28,7 @@ envsubst <schemapwd.sql | spoc-container exec mifosx-mariadb -- mysql -u mysql m
# Populate database # Populate database
spoc-container start mifosx spoc-container start mifosx
until grep -q 'org.apache.catalina.startup.Catalina.start Server startup' /var/log/lxc/mifosx.log; do until grep -q 'org.apache.catalina.startup.Catalina.start Server startup' /var/log/spoc/mifosx.log; do
sleep 1 sleep 1
done done
spoc-container stop mifosx spoc-container stop mifosx

View File

@ -2,7 +2,7 @@
set -ev set -ev
# Remove persistent data # Remove persistent data
rm -rf "${VOLUME_DIR}/mifosx" rm -rf "${VOLUMES_DIR}/mifosx"
# Unregister application # Unregister application
vmmgr unregister-app mifosx vmmgr unregister-app mifosx