Spotter-VM/lxc-apps/opendatakit/opendatakit.image

24 lines
722 B
Plaintext
Raw Normal View History

2020-04-04 00:17:24 +02:00
IMAGE opendatakit_2.0.5-200403
FROM alpine3.11-tomcat8.5_8.5.53-200403
2018-09-13 13:42:36 +02:00
RUN EOF
# Download OpenDataKit
2020-06-03 18:38:01 +02:00
wget https://github.com/getodk/aggregate/releases/download/v2.0.5/ODK-Aggregate-v2.0.5.war -O /tmp/odk.war
2018-09-13 13:42:36 +02:00
mkdir /srv/tomcat/webapps/ROOT
unzip /tmp/odk.war -d /srv/tomcat/webapps/ROOT
# Update Postgres JDBC driver
rm /srv/tomcat/webapps/ROOT/WEB-INF/lib/postgresql-42.1.4.jre7.jar
wget https://jdbc.postgresql.org/download/postgresql-42.2.11.jar -O /srv/tomcat/webapps/ROOT/WEB-INF/lib/postgresql-42.2.11.jar
2018-09-13 13:42:36 +02:00
# Change webapps ownership
chown -R tomcat:tomcat /srv/tomcat/webapps
2018-09-13 13:42:36 +02:00
# Cleanup
rm /tmp/odk.war
2018-09-13 13:42:36 +02:00
EOF
2020-03-21 22:42:35 +01:00
USER tomcat
2018-09-13 13:42:36 +02:00
WORKDIR /srv/tomcat
CMD /usr/bin/catalina.sh run