Spotter-VM/lxc-apps/mifosx/image

40 lines
1.6 KiB
Plaintext
Raw Normal View History

2020-10-22 22:57:45 +02:00
IMAGE mifosx_18.03.01-201021
FROM alpine3.12-tomcat8.5_8.5.59-201021
2018-09-13 13:34:27 +02:00
RUN EOF
2020-10-22 22:57:45 +02:00
# Install build dependencies
# Full-featured wget needed to work around sourceforge bugs
apk --no-cache add --virtual .deps patch wget
2018-09-13 13:34:27 +02:00
# Download Mifos X
wget https://sourceforge.net/projects/mifos/files/Mifos%20X/mifosplatform-18.03.01.RELEASE.zip/download -O /tmp/mifosx.zip
2018-09-13 13:34:27 +02:00
mkdir /srv/tomcat/webapps/fineract-provider
unzip /tmp/mifosx.zip -d /tmp
unzip /tmp/fineractplatform-18.03.01.RELEASE/fineract-provider.war -d /srv/tomcat/webapps/fineract-provider
mv /tmp/fineractplatform-18.03.01.RELEASE/apps/community-app /srv/tomcat/webapps/ROOT
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
2020-03-24 21:51:25 +01:00
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
EOF
# s6 required for single service due to hanging threads
2020-03-18 16:51:21 +01:00
COPY image.d
2018-09-13 13:34:27 +02:00
RUN EOF
2018-09-13 13:34:27 +02:00
# Update Czech translation of community-app
wget 'https://translatewiki.net/wiki/Special:ExportTranslations?group=out-mifos&language=cs&format=export-to-file' -O /srv/tomcat/webapps/ROOT/global-translations/locale-cs.json
cd /srv/tomcat/webapps/ROOT/scripts/
patch -p0 -i /tmp/locale-cs.patch
2018-09-13 13:34:27 +02:00
rm /tmp/locale-cs.patch
# Change webapps ownership
chown -R tomcat:tomcat /srv/tomcat/webapps
2020-10-22 22:57:45 +02:00
# Cleanup
apk --no-cache del .deps
rm -rf /tmp/fineractplatform-18.03.01.RELEASE /tmp/mifosx.zip
2018-09-13 13:34:27 +02:00
EOF
2020-02-09 15:54:46 +01:00
CMD /bin/s6-svscan /etc/services.d