From ea4b883b3f77da1b2e47d2675ca62653cbe3d9d2 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Thu, 13 Sep 2018 14:44:32 +0200 Subject: [PATCH] LXCize Ushahidi build --- ushahidi/Dockerfile | 33 ---------------- ushahidi/{docker => lxc}/etc/nginx/nginx.conf | 0 .../{docker => lxc}/etc/php7/php-fpm.conf | 0 .../etc/services.d/.s6-svscan/finish | 0 .../{docker => lxc}/etc/services.d/nginx/run | 0 .../etc/services.d/php-fpm/run | 0 .../{docker => lxc}/srv/ushahidi/aura.patch | 0 .../{docker => lxc}/srv/ushahidi/config.js | 0 .../srv/ushahidi/locales/cs.json | 0 .../srv/ushahidi/locales/languages.json | 0 .../platform/application/config/init.php | 0 ushahidi/lxcfile | 38 +++++++++++++++++++ ushahidi/{build.sh => setup.sh} | 0 ushahidi/{ => setup}/adminpwd.sql | 0 ushahidi/{ => setup}/createdb.sql | 0 ushahidi/{ => setup}/etc/init.d/ushahidi | 0 .../{ => setup}/etc/periodic/15min/ushahidi | 0 .../{ => setup}/srv/ushahidi/conf/config.json | 0 ushahidi/{ => setup}/srv/ushahidi/conf/env | 0 19 files changed, 38 insertions(+), 33 deletions(-) delete mode 100644 ushahidi/Dockerfile rename ushahidi/{docker => lxc}/etc/nginx/nginx.conf (100%) rename ushahidi/{docker => lxc}/etc/php7/php-fpm.conf (100%) rename ushahidi/{docker => lxc}/etc/services.d/.s6-svscan/finish (100%) rename ushahidi/{docker => lxc}/etc/services.d/nginx/run (100%) rename ushahidi/{docker => lxc}/etc/services.d/php-fpm/run (100%) rename ushahidi/{docker => lxc}/srv/ushahidi/aura.patch (100%) rename ushahidi/{docker => lxc}/srv/ushahidi/config.js (100%) rename ushahidi/{docker => lxc}/srv/ushahidi/locales/cs.json (100%) rename ushahidi/{docker => lxc}/srv/ushahidi/locales/languages.json (100%) rename ushahidi/{docker => lxc}/srv/ushahidi/platform/application/config/init.php (100%) create mode 100644 ushahidi/lxcfile rename ushahidi/{build.sh => setup.sh} (100%) rename ushahidi/{ => setup}/adminpwd.sql (100%) rename ushahidi/{ => setup}/createdb.sql (100%) rename ushahidi/{ => setup}/etc/init.d/ushahidi (100%) rename ushahidi/{ => setup}/etc/periodic/15min/ushahidi (100%) rename ushahidi/{ => setup}/srv/ushahidi/conf/config.json (100%) rename ushahidi/{ => setup}/srv/ushahidi/conf/env (100%) diff --git a/ushahidi/Dockerfile b/ushahidi/Dockerfile deleted file mode 100644 index e81d6c8..0000000 --- a/ushahidi/Dockerfile +++ /dev/null @@ -1,33 +0,0 @@ -FROM php -LABEL maintainer="Disassembler " - -RUN \ - # Install runtime dependencies - apk --no-cache add php7-curl php7-imap php7-mysqli php7-pdo_mysql - -RUN \ - # Download Ushahidi - wget https://github.com/ushahidi/platform-client/releases/download/v3.12.3/ushahidi-platform-client-bundle-v3.12.3.tar.gz -O /tmp/ushahidi-platform-client-bundle.tar.gz \ - && wget https://github.com/ushahidi/platform/releases/download/v3.12.3/ushahidi-platform-bundle-v3.12.3.tar.gz -O /tmp/ushahidi-platform-bundle.tar.gz \ - && tar xzf /tmp/ushahidi-platform-client-bundle.tar.gz -C /srv \ - && mv /srv/ushahidi-platform-client-bundle-v3.12.3 /srv/ushahidi \ - && tar xzf /tmp/ushahidi-platform-bundle.tar.gz -C /srv/ushahidi \ - && mv /srv/ushahidi/ushahidi-platform-bundle-v3.12.3 /srv/ushahidi/platform \ - # Create OS user - && addgroup -S -g 8014 ushahidi \ - && adduser -S -u 8014 -h /srv/ushahidi -s /bin/false -g ushahidi -G ushahidi ushahidi \ - && chown -R ushahidi:ushahidi /srv/ushahidi/platform/application/logs /srv/ushahidi/platform/application/cache /srv/ushahidi/platform/application/media/uploads \ - # Cleanup - && rm -rf /tmp/ushahidi-platform-client-bundle.tar.gz /tmp/ushahidi-platform-bundle.tar.gz - -COPY docker/ / - -RUN \ - # Patch Previewers - cd /srv/ushahidi \ - && patch -p0