2021-01-06 19:28:37 +01:00
|
|
|
IMAGE opendatakit_2.0.5-210106
|
|
|
|
FROM alpine3.12-tomcat8.5_8.5.61-210106
|
2018-09-13 13:42:36 +02:00
|
|
|
|
|
|
|
RUN EOF
|
2019-03-01 12:23:22 +01:00
|
|
|
# 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
|
2019-03-01 12:23:22 +01:00
|
|
|
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
|
2020-10-22 22:59:58 +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
|
2018-09-13 13:42:36 +02:00
|
|
|
|
2019-11-30 19:00:03 +01:00
|
|
|
# Change webapps ownership
|
|
|
|
chown -R tomcat:tomcat /srv/tomcat/webapps
|
2018-09-13 13:42:36 +02:00
|
|
|
|
|
|
|
# Cleanup
|
2019-03-01 12:23:22 +01:00
|
|
|
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
|
2020-03-20 14:50:41 +01:00
|
|
|
CMD /usr/bin/catalina.sh run
|