summaryrefslogtreecommitdiffstats
path: root/.examples/dockerfiles
diff options
context:
space:
mode:
authorGrieche <e1128193@student.tuwien.ac.at>2017-12-24 14:08:07 +0100
committerGrieche <e1128193@student.tuwien.ac.at>2017-12-24 14:08:07 +0100
commit34a15393321c087e805f5d6e3884535d5da6df3b (patch)
tree4e9cfe8ad433afc38b48c5a2347622cb705eb0ae /.examples/dockerfiles
parentac3f70f027d8abf7b62919deb98c102323356453 (diff)
* Added example Dockerfile for FULL recommended dependencies under
full/
Diffstat (limited to '.examples/dockerfiles')
-rw-r--r--.examples/dockerfiles/full/apache/Dockerfile25
-rw-r--r--.examples/dockerfiles/full/apache/supervisord.conf22
-rw-r--r--.examples/dockerfiles/full/fpm/Dockerfile25
-rw-r--r--.examples/dockerfiles/full/fpm/supervisord.conf22
4 files changed, 94 insertions, 0 deletions
diff --git a/.examples/dockerfiles/full/apache/Dockerfile b/.examples/dockerfiles/full/apache/Dockerfile
new file mode 100644
index 00000000..13f81dee
--- /dev/null
+++ b/.examples/dockerfiles/full/apache/Dockerfile
@@ -0,0 +1,25 @@
+FROM nextcloud:apache
+
+RUN echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/sources.list \
+ && apt-get update && apt-get install -y \
+ supervisor \
+ cron \
+ ffmpeg \
+ libmagickwand-dev \
+ libgmp3-dev \
+ libc-client-dev \
+ libkrb5-dev \
+ smbclient \
+ libsmbclient-dev \
+# LibreOffice \
+ && rm -rf /var/lib/apt/lists/* \
+ && docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
+ && docker-php-ext-install bz2 gmp imap \
+ && pecl install imagick smbclient \
+ && docker-php-ext-enable imagick smbclient \
+ && mkdir /var/log/supervisord /var/run/supervisord \
+ && echo "*/15 * * * * su - www-data -s /bin/bash -c \"php -f /var/www/html/cron.php\""| crontab -
+
+COPY supervisord.conf /etc/supervisor/supervisord.conf
+
+CMD ["/usr/bin/supervisord"]
diff --git a/.examples/dockerfiles/full/apache/supervisord.conf b/.examples/dockerfiles/full/apache/supervisord.conf
new file mode 100644
index 00000000..ff27295f
--- /dev/null
+++ b/.examples/dockerfiles/full/apache/supervisord.conf
@@ -0,0 +1,22 @@
+[supervisord]
+nodaemon=true
+logfile=/var/log/supervisord/supervisord.log
+pidfile=/var/run/supervisord/supervisord.pid
+childlogdir=/var/log/supervisord/
+logfile_maxbytes=50MB ; maximum size of logfile before rotation
+logfile_backups=10 ; number of backed up logfiles
+loglevel=error
+
+[program:php-fpm]
+stdout_logfile=/dev/stdout
+stdout_logfile_maxbytes=0
+stderr_logfile=/dev/stderr
+stderr_logfile_maxbytes=0
+command=php-fpm
+
+[program:cron]
+stdout_logfile=/dev/stdout
+stdout_logfile_maxbytes=0
+stderr_logfile=/dev/stderr
+stderr_logfile_maxbytes=0
+command=cron -f
diff --git a/.examples/dockerfiles/full/fpm/Dockerfile b/.examples/dockerfiles/full/fpm/Dockerfile
new file mode 100644
index 00000000..e268b0d2
--- /dev/null
+++ b/.examples/dockerfiles/full/fpm/Dockerfile
@@ -0,0 +1,25 @@
+FROM nextcloud:fpm
+
+RUN echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/sources.list \
+ && apt-get update && apt-get install -y \
+ supervisor \
+ cron \
+ ffmpeg \
+ libmagickwand-dev \
+ libgmp3-dev \
+ libc-client-dev \
+ libkrb5-dev \
+ smbclient \
+ libsmbclient-dev \
+# LibreOffice \
+ && rm -rf /var/lib/apt/lists/* \
+ && docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
+ && docker-php-ext-install bz2 gmp imap \
+ && pecl install imagick smbclient \
+ && docker-php-ext-enable imagick smbclient \
+ && mkdir /var/log/supervisord /var/run/supervisord \
+ && echo "*/15 * * * * su - www-data -s /bin/bash -c \"php -f /var/www/html/cron.php\""| crontab -
+
+COPY supervisord.conf /etc/supervisor/supervisord.conf
+
+CMD ["/usr/bin/supervisord"]
diff --git a/.examples/dockerfiles/full/fpm/supervisord.conf b/.examples/dockerfiles/full/fpm/supervisord.conf
new file mode 100644
index 00000000..ff27295f
--- /dev/null
+++ b/.examples/dockerfiles/full/fpm/supervisord.conf
@@ -0,0 +1,22 @@
+[supervisord]
+nodaemon=true
+logfile=/var/log/supervisord/supervisord.log
+pidfile=/var/run/supervisord/supervisord.pid
+childlogdir=/var/log/supervisord/
+logfile_maxbytes=50MB ; maximum size of logfile before rotation
+logfile_backups=10 ; number of backed up logfiles
+loglevel=error
+
+[program:php-fpm]
+stdout_logfile=/dev/stdout
+stdout_logfile_maxbytes=0
+stderr_logfile=/dev/stderr
+stderr_logfile_maxbytes=0
+command=php-fpm
+
+[program:cron]
+stdout_logfile=/dev/stdout
+stdout_logfile_maxbytes=0
+stderr_logfile=/dev/stderr
+stderr_logfile_maxbytes=0
+command=cron -f