2019-06-25 15:56:35 +02:00
|
|
|
IMAGE sigmah 2.0.2-190620
|
|
|
|
META title Sigmah
|
|
|
|
META desc-cs Finanční řízení sbírek
|
|
|
|
META desc-en Donation management
|
|
|
|
META type app
|
|
|
|
META license GPL
|
|
|
|
META depends postgres
|
|
|
|
|
|
|
|
LAYER alpine3.9 3.9.4-190620
|
|
|
|
LAYER alpine3.9-java8 8.212.04-190620
|
|
|
|
LAYER alpine3.9-tomcat8.5 8.5.41-190620
|
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
|
|
|
|
wget https://jdbc.postgresql.org/download/postgresql-42.2.5.jar -O /srv/tomcat/webapps/sigmah/WEB-INF/lib/postgresql-42.2.5.jar
|
|
|
|
|
|
|
|
# Remove logging config
|
|
|
|
rm /srv/tomcat/webapps/sigmah/WEB-INF/classes/logback.xml
|
|
|
|
|
|
|
|
# Create OS user
|
|
|
|
addgroup -S -g 8011 sigmah
|
|
|
|
adduser -S -u 8011 -h /srv/tomcat -s /bin/false -g sigmah -G sigmah sigmah
|
|
|
|
chown -R sigmah:sigmah /srv/tomcat/conf /srv/tomcat/logs /srv/tomcat/temp /srv/tomcat/webapps /srv/tomcat/work
|
|
|
|
|
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
|
|
|
|
|
|
|
|
COPY lxc
|
|
|
|
|
2018-09-14 18:13:11 +02:00
|
|
|
MOUNT DIR /srv/sigmah/data srv/sigmah/data
|
|
|
|
MOUNT FILE /srv/sigmah/conf/persistence.xml srv/tomcat/webapps/sigmah/WEB-INF/classes/META-INF/persistence.xml
|
|
|
|
MOUNT FILE /srv/sigmah/conf/sigmah.properties srv/tomcat/webapps/sigmah/WEB-INF/classes/sigmah.properties
|
2018-09-13 14:39:35 +02:00
|
|
|
|
|
|
|
USER 8011 8011
|
|
|
|
WORKDIR /srv/tomcat
|
2018-09-13 16:21:16 +02:00
|
|
|
CMD catalina.sh run
|