Spotter-VM/lxc-apps/mifosx/image

39 lines
1.5 KiB
Plaintext

IMAGE mifosx_18.03.01-200313
FROM alpine3.11-tomcat8.5_8.5.51-200313
RUN EOF
# Install full-featured wget to work around sourceforge bugs
apk --no-cache add wget
# Download Mifos X
wget https://sourceforge.net/projects/mifos/files/Mifos%20X/mifosplatform-18.03.01.RELEASE.zip/download -O /tmp/mifosx.zip
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
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
apk --no-cache del wget
rm -rf /tmp/fineractplatform-18.03.01.RELEASE /tmp/mifosx.zip
EOF
# s6 required for single service due to hanging threads
COPY image.d
RUN EOF
# 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 </tmp/locale-cs.patch
rm /tmp/locale-cs.patch
# Change webapps ownership
chown -R tomcat:tomcat /srv/tomcat/webapps
EOF
CMD /bin/s6-svscan /etc/services.d