From e0e49ec31a387803aa6a98926da37a89c6fc09c8 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Mon, 23 Mar 2020 10:11:16 +0100 Subject: [PATCH] Make SeedDMS SPOC-compatible --- lxc-apps/seeddms/app | 27 +++++++++++++ lxc-apps/seeddms/{lxcfile => image} | 14 +++---- .../{lxc => image.d}/etc/crontabs/seeddms | 0 .../{lxc => image.d}/etc/nginx/nginx.conf | 0 .../{lxc => image.d}/etc/php7/php-fpm.conf | 0 .../etc/services.d/.s6-svscan/finish | 0 .../{lxc => image.d}/etc/services.d/cron/run | 0 .../{lxc => image.d}/etc/services.d/nginx/run | 0 .../etc/services.d/php-fpm/run | 0 .../srv/seeddms/previewers.patch | 0 .../seeddms/seeddms/languages/cs_CZ/lang.inc | 0 .../srv/seeddms/seeddms/utils/seeddms-indexer | 0 lxc-apps/seeddms/install.sh | 38 +++++++++---------- lxc-apps/seeddms/meta | 27 ------------- lxc-apps/seeddms/uninstall.sh | 2 +- 15 files changed, 53 insertions(+), 55 deletions(-) create mode 100644 lxc-apps/seeddms/app rename lxc-apps/seeddms/{lxcfile => image} (81%) rename lxc-apps/seeddms/{lxc => image.d}/etc/crontabs/seeddms (100%) rename lxc-apps/seeddms/{lxc => image.d}/etc/nginx/nginx.conf (100%) rename lxc-apps/seeddms/{lxc => image.d}/etc/php7/php-fpm.conf (100%) rename lxc-apps/seeddms/{lxc => image.d}/etc/services.d/.s6-svscan/finish (100%) rename lxc-apps/seeddms/{lxc => image.d}/etc/services.d/cron/run (100%) rename lxc-apps/seeddms/{lxc => image.d}/etc/services.d/nginx/run (100%) rename lxc-apps/seeddms/{lxc => image.d}/etc/services.d/php-fpm/run (100%) rename lxc-apps/seeddms/{lxc => image.d}/srv/seeddms/previewers.patch (100%) rename lxc-apps/seeddms/{lxc => image.d}/srv/seeddms/seeddms/languages/cs_CZ/lang.inc (100%) rename lxc-apps/seeddms/{lxc => image.d}/srv/seeddms/seeddms/utils/seeddms-indexer (100%) delete mode 100644 lxc-apps/seeddms/meta diff --git a/lxc-apps/seeddms/app b/lxc-apps/seeddms/app new file mode 100644 index 0000000..901635c --- /dev/null +++ b/lxc-apps/seeddms/app @@ -0,0 +1,27 @@ +{ + "version": "5.1.15-200313", + "meta": { + "title": "SeedDMS", + "desc-cs": "Archiv dokumentace", + "desc-en": "Document management system", + "license": "GPL" + }, + "containers": { + "seeddms": { + "image": "seeddms_5.1.15-200313", + "depends": [ + "seeddms-postgres" + ], + "mounts": { + "seeddms/seeddms_conf": "srv/seeddms/conf", + "seeddms/seeddms_data": "srv/seeddms/data" + } + }, + "seeddms-postgres": { + "image": "postgres_12.2.0-200313", + "mounts": { + "seeddms/postgres_data": "var/lib/postgresql" + } + } + } +} diff --git a/lxc-apps/seeddms/lxcfile b/lxc-apps/seeddms/image similarity index 81% rename from lxc-apps/seeddms/lxcfile rename to lxc-apps/seeddms/image index 6bb632c..5e9b867 100644 --- a/lxc-apps/seeddms/lxcfile +++ b/lxc-apps/seeddms/image @@ -1,5 +1,5 @@ -IMAGE seeddms_5.1.9-190620 -FROM alpine3.9-php7.2_7.2.19-190620 +IMAGE seeddms_5.1.15-200313 +FROM alpine3.11-php7.3_7.3.15-200313 RUN EOF # Install runtime dependencies @@ -14,18 +14,16 @@ RUN EOF apk --no-cache add wget # Install SeedDMS - wget https://sourceforge.net/projects/seeddms/files/seeddms-5.1.9/seeddms-quickstart-5.1.9.tar.gz/download -O /srv/seeddms.tgz - tar xzf /srv/seeddms.tgz -C /srv - mv /srv/seeddms51x /srv/seeddms - rm -f /srv/seeddms.tgz + wget https://sourceforge.net/projects/seeddms/files/seeddms-5.1.15/seeddms-quickstart-5.1.15.tar.gz/download -O - | tar xzf - -C /srv + mv /srv/seeddms* /srv/seeddms EOF -COPY lxc +COPY image.d RUN EOF # Patch Previewers cd /srv/seeddms - patch -p0 /srv/seeddms/seeddms_conf/settings.xml +envsubst