Spotter-VM/lxc-apps/motech/image

25 lines
994 B
Plaintext
Raw Normal View History

2020-10-22 22:58:17 +02:00
IMAGE motech_1.3.0-201021
FROM alpine3.12-tomcat7_7.0.106-201021
2018-09-13 13:39:25 +02:00
RUN EOF
# Download Motech
wget http://nexus.motechproject.org/service/local/repositories/releases/content/org/motechproject/motech-platform-server/1.3/motech-platform-server-1.3.war -O /tmp/motech.war
mkdir /srv/tomcat/webapps/ROOT
unzip /tmp/motech.war -d /srv/tomcat/webapps/ROOT
# Update Postgres JDBC driver
rm -f /srv/tomcat/webapps/ROOT/WEB-INF/lib/postgresql-9.1-901.jdbc4.jar /srv/tomcat/webapps/ROOT/WEB-INF/bundles/postgresql-9.1-901.jdbc4.jar
2020-10-22 22:58:17 +02:00
wget https://jdbc.postgresql.org/download/postgresql-42.2.18.jar -O /srv/tomcat/webapps/ROOT/WEB-INF/lib/postgresql-42.2.18.jar
cp /srv/tomcat/webapps/ROOT/WEB-INF/lib/postgresql-42.2.18.jar /srv/tomcat/webapps/ROOT/WEB-INF/bundles/postgresql-42.2.18.jar
2018-09-13 13:39:25 +02:00
# Change webapps ownership
chown -R tomcat:tomcat /srv/tomcat/webapps
2018-09-13 13:39:25 +02:00
# Cleanup
rm -f /tmp/motech.war
EOF
2020-03-20 14:51:12 +01:00
USER tomcat
2018-09-13 13:39:25 +02:00
WORKDIR /srv/tomcat
2020-03-20 14:51:12 +01:00
CMD /usr/bin/catalina.sh run