2020-03-23 13:43:53 +01:00
|
|
|
IMAGE sigmah_2.0.2-200313
|
|
|
|
FROM alpine3.11-tomcat8.5_8.5.51-200313
|
2018-09-13 14:39:35 +02:00
|
|
|
|
|
|
|
RUN EOF
|
|
|
|
# Download Sigmah
|
|
|
|
wget https://github.com/sigmah-dev/sigmah/releases/download/v2.0.2/sigmah-2.0.2.war -O /tmp/sigmah.war
|
|
|
|
mkdir /srv/tomcat/webapps/sigmah
|
|
|
|
unzip /tmp/sigmah.war -d /srv/tomcat/webapps/sigmah
|
|
|
|
|
|
|
|
# Update Postgres JDBC driver
|
|
|
|
rm /srv/tomcat/webapps/sigmah/WEB-INF/lib/postgresql-9.1-901-1.jdbc4.jar
|
2020-03-20 14:50:41 +01:00
|
|
|
wget https://jdbc.postgresql.org/download/postgresql-42.2.11.jar -O /srv/tomcat/webapps/sigmah/WEB-INF/lib/postgresql-42.2.11.jar
|
2018-09-13 14:39:35 +02:00
|
|
|
|
|
|
|
# Remove logging config
|
|
|
|
rm /srv/tomcat/webapps/sigmah/WEB-INF/classes/logback.xml
|
|
|
|
|
2019-11-30 19:00:03 +01:00
|
|
|
# Change webapps ownership
|
|
|
|
chown -R tomcat:tomcat /srv/tomcat/webapps
|
2018-09-13 14:39:35 +02:00
|
|
|
|
2019-03-01 14:53:30 +01:00
|
|
|
# Download database files
|
|
|
|
wget https://github.com/sigmah-dev/sigmah/releases/download/v2.0.2/sigmah-MinimumDataKit-2.0.postgresql.sql -O /srv/sigmah-MinimumDataKit.sql
|
|
|
|
wget https://github.com/sigmah-dev/sigmah/releases/download/v2.0.2/sigmah-newOrganizationLaunchScript-2.0.postgresql.sql -O /srv/sigmah-newOrganizationLaunchScript.sql
|
|
|
|
|
2018-09-13 14:39:35 +02:00
|
|
|
# Cleanup
|
|
|
|
rm /tmp/sigmah.war
|
|
|
|
EOF
|
|
|
|
|
2020-03-23 13:43:53 +01:00
|
|
|
COPY image.d
|
2018-09-13 14:39:35 +02:00
|
|
|
|
2020-03-23 13:43:53 +01:00
|
|
|
USER tomcat
|
2018-09-13 14:39:35 +02:00
|
|
|
WORKDIR /srv/tomcat
|
2020-03-20 14:50:41 +01:00
|
|
|
CMD /usr/bin/catalina.sh run
|