Bump MifosX to Alpine 3.12
This commit is contained in:
parent
2b09ee23c8
commit
a763665f32
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "18.03.01-200621",
|
"version": "18.03.01-201021",
|
||||||
"meta": {
|
"meta": {
|
||||||
"title": "Mifos X",
|
"title": "Mifos X",
|
||||||
"desc-cs": "Mikrofinancování rozvojových projektů",
|
"desc-cs": "Mikrofinancování rozvojových projektů",
|
||||||
@ -8,7 +8,7 @@
|
|||||||
},
|
},
|
||||||
"containers": {
|
"containers": {
|
||||||
"mifosx": {
|
"mifosx": {
|
||||||
"image": "mifosx_18.03.01-200621",
|
"image": "mifosx_18.03.01-201021",
|
||||||
"depends": [
|
"depends": [
|
||||||
"mifosx-mariadb"
|
"mifosx-mariadb"
|
||||||
],
|
],
|
||||||
@ -18,7 +18,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mifosx-mariadb": {
|
"mifosx-mariadb": {
|
||||||
"image": "mariadb_10.4.13-200621",
|
"image": "mariadb_10.4.15-201021",
|
||||||
"mounts": {
|
"mounts": {
|
||||||
"mifosx/mariadb_conf/my.cnf": "etc/my.cnf:file",
|
"mifosx/mariadb_conf/my.cnf": "etc/my.cnf:file",
|
||||||
"mifosx/mariadb_data": "var/lib/mysql"
|
"mifosx/mariadb_data": "var/lib/mysql"
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
IMAGE mifosx_18.03.01-200621
|
IMAGE mifosx_18.03.01-201021
|
||||||
FROM alpine3.11-tomcat8.5_8.5.56-200621
|
FROM alpine3.12-tomcat8.5_8.5.59-201021
|
||||||
|
|
||||||
RUN EOF
|
RUN EOF
|
||||||
# Install full-featured wget to work around sourceforge bugs
|
# Install build dependencies
|
||||||
apk --no-cache add wget
|
# Full-featured wget needed to work around sourceforge bugs
|
||||||
|
apk --no-cache add --virtual .deps patch wget
|
||||||
|
|
||||||
# Download Mifos X
|
# Download Mifos X
|
||||||
wget https://sourceforge.net/projects/mifos/files/Mifos%20X/mifosplatform-18.03.01.RELEASE.zip/download -O /tmp/mifosx.zip
|
wget https://sourceforge.net/projects/mifos/files/Mifos%20X/mifosplatform-18.03.01.RELEASE.zip/download -O /tmp/mifosx.zip
|
||||||
@ -15,10 +16,6 @@ RUN EOF
|
|||||||
|
|
||||||
# Download Java library dependencies
|
# Download Java library dependencies
|
||||||
wget https://repo.maven.apache.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://repo.maven.apache.org/maven2/org/drizzle/jdbc/drizzle-jdbc/1.4/drizzle-jdbc-1.4.jar -O /srv/tomcat/lib/drizzle-jdbc-1.4.jar
|
||||||
|
|
||||||
# Cleanup
|
|
||||||
apk --no-cache del wget
|
|
||||||
rm -rf /tmp/fineractplatform-18.03.01.RELEASE /tmp/mifosx.zip
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# s6 required for single service due to hanging threads
|
# s6 required for single service due to hanging threads
|
||||||
@ -33,6 +30,10 @@ RUN EOF
|
|||||||
|
|
||||||
# Change webapps ownership
|
# Change webapps ownership
|
||||||
chown -R tomcat:tomcat /srv/tomcat/webapps
|
chown -R tomcat:tomcat /srv/tomcat/webapps
|
||||||
|
|
||||||
|
# Cleanup
|
||||||
|
apk --no-cache del .deps
|
||||||
|
rm -rf /tmp/fineractplatform-18.03.01.RELEASE /tmp/mifosx.zip
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
CMD /bin/s6-svscan /etc/services.d
|
CMD /bin/s6-svscan /etc/services.d
|
||||||
|
@ -3,9 +3,20 @@
|
|||||||
# Volumes
|
# Volumes
|
||||||
MIFOSX_CONF="${VOLUMES_DIR}/mifosx/mifosx_conf"
|
MIFOSX_CONF="${VOLUMES_DIR}/mifosx/mifosx_conf"
|
||||||
|
|
||||||
|
# Start MariaDB container if needed
|
||||||
|
if [ "$(spoc-container status mifosx-mariadb)" != "RUNNING" ]; then
|
||||||
|
STOP_MARIADB=1
|
||||||
|
spoc-container start mifosx-mariadb
|
||||||
|
fi
|
||||||
|
|
||||||
# Replacements
|
# Replacements
|
||||||
sed -i "s|\(^\s\+proxyName=\).*|\1\"${HOST}\"|" ${MIFOSX_CONF}/server.xml
|
sed -i "s|\(^\s\+proxyName=\).*|\1\"${HOST}\"|" ${MIFOSX_CONF}/server.xml
|
||||||
sed -i "s|\(^\s\+proxyPort=\).*|\1\"${PORT}\"|" ${MIFOSX_CONF}/server.xml
|
sed -i "s|\(^\s\+proxyPort=\).*|\1\"${PORT}\"|" ${MIFOSX_CONF}/server.xml
|
||||||
|
|
||||||
QUERY="UPDATE \`c_external_service_properties\` SET \`value\` = '${EMAIL}' WHERE \`external_service_id\` = 2 and \`name\` LIKE 'username'"
|
QUERY="UPDATE \`c_external_service_properties\` SET \`value\` = '${EMAIL}' WHERE \`external_service_id\` = 2 and \`name\` LIKE 'username'"
|
||||||
spoc-container exec mifosx-mariadb -- mysql -e "${QUERY}" mifostenant-default
|
spoc-container exec mifosx-mariadb -- mysql -e "${QUERY}" mifostenant-default
|
||||||
|
|
||||||
|
# Stop MariaDB container if needed
|
||||||
|
if [ -n "${STOP_MARIADB}" ]; then
|
||||||
|
echo spoc-container stop mifosx-mariadb
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user