diff --git a/.config/htconfig.php b/.config/htconfig.php index ccd86da..4b67aa8 100644 --- a/.config/htconfig.php +++ b/.config/htconfig.php @@ -110,4 +110,28 @@ $a->config['system']['auth_cookie_lifetime'] = 7; if (!empty(getenv('VALIDATION'))) { $a->config['system']['disable_url_validation'] = strtolower(getenv('VALIDATION')); $a->config['system']['disable_email_validation'] = strtolower(getenv('VALIDATION')); +} + +if (!empty(getenv('CACHE_DRIVER'))) { + $a->config['system']['cache_driver'] = strtolower(getenv('CACHE_DRIVER')); + + if (!empty(getenv('REDIS_HOST'))) { + $a->config['system']['redis_host'] = getenv('REDIS_HOST'); + } + + if (!empty(getenv('REDIS_PORT'))) { + $a->config['system']['redis_port'] = getenv('REDIS_PORT'); + } + + if (!empty(getenv('MEMCACHE_HOST'))) { + $a->config['system']['memcache_host'] = getenv('MEMCACHE_HOST'); + } + + if (!empty(getenv('MEMCACHE_PORT'))) { + $a->config['system']['memcache_port'] = getenv('MEMCACHE_PORT'); + } + + if (!empty(getenv('MEMCACHED_HOSTS'))) { + $a->config['system']['memcached_hosts'] = getenv('MEMCACHED_HOSTS'); + } } \ No newline at end of file diff --git a/.examples/docker-compose/insecure/mariadb-cron/apache/db.env b/.examples/docker-compose/insecure/mariadb-cron-redis/apache/db.env similarity index 100% rename from .examples/docker-compose/insecure/mariadb-cron/apache/db.env rename to .examples/docker-compose/insecure/mariadb-cron-redis/apache/db.env diff --git a/.examples/docker-compose/insecure/mariadb-cron/apache/docker-compose.yml b/.examples/docker-compose/insecure/mariadb-cron-redis/apache/docker-compose.yml similarity index 79% rename from .examples/docker-compose/insecure/mariadb-cron/apache/docker-compose.yml rename to .examples/docker-compose/insecure/mariadb-cron-redis/apache/docker-compose.yml index 779e0d4..9269cbb 100644 --- a/.examples/docker-compose/insecure/mariadb-cron/apache/docker-compose.yml +++ b/.examples/docker-compose/insecure/mariadb-cron-redis/apache/docker-compose.yml @@ -11,6 +11,10 @@ services: env_file: - db.env + redis: + image: redis + restart: always + app: image: friendica/server:apache restart: always @@ -18,6 +22,8 @@ services: - friendica:/var/www/html environment: - AUTOINSTALL=true + - CACHE_DRIVER=redis + - REDIS_HOST=redis - MAILNAME= - TZ= - LANGUAGE= @@ -37,6 +43,8 @@ services: - friendica:/var/www/html entrypoint: /cron.sh environment: + - CACHE_DRIVER=redis + - REDIS_HOST=redis - MAILNAME= - TZ= - LANGUAGE= diff --git a/.examples/docker-compose/insecure/mariadb-cron/fpm-alpine/db.env b/.examples/docker-compose/insecure/mariadb-cron-redis/fpm-alpine/db.env similarity index 100% rename from .examples/docker-compose/insecure/mariadb-cron/fpm-alpine/db.env rename to .examples/docker-compose/insecure/mariadb-cron-redis/fpm-alpine/db.env diff --git a/.examples/docker-compose/insecure/mariadb-cron/fpm-alpine/docker-compose.yml b/.examples/docker-compose/insecure/mariadb-cron-redis/fpm-alpine/docker-compose.yml similarity index 81% rename from .examples/docker-compose/insecure/mariadb-cron/fpm-alpine/docker-compose.yml rename to .examples/docker-compose/insecure/mariadb-cron-redis/fpm-alpine/docker-compose.yml index e7ebf1f..225ec8f 100644 --- a/.examples/docker-compose/insecure/mariadb-cron/fpm-alpine/docker-compose.yml +++ b/.examples/docker-compose/insecure/mariadb-cron-redis/fpm-alpine/docker-compose.yml @@ -11,6 +11,10 @@ services: env_file: - db.env + redis: + image: redis + restart: always + app: image: friendica/server:fpm-alpine restart: always @@ -18,6 +22,8 @@ services: - friendica:/var/www/html environment: - AUTOINSTALL=true + - CACHE_DRIVER=redis + - REDIS_HOST=redis - MAILNAME= - TZ= - LANGUAGE= @@ -35,6 +41,8 @@ services: - friendica:/var/www/html entrypoint: /cron.sh environment: + - CACHE_DRIVER=redis + - REDIS_HOST=redis - MAILNAME= - TZ= - LANGUAGE= diff --git a/.examples/docker-compose/insecure/mariadb-cron/fpm-alpine/web/nginx.conf b/.examples/docker-compose/insecure/mariadb-cron-redis/fpm-alpine/web/nginx.conf similarity index 100% rename from .examples/docker-compose/insecure/mariadb-cron/fpm-alpine/web/nginx.conf rename to .examples/docker-compose/insecure/mariadb-cron-redis/fpm-alpine/web/nginx.conf diff --git a/.examples/docker-compose/insecure/mariadb-cron/fpm/db.env b/.examples/docker-compose/insecure/mariadb-cron-redis/fpm/db.env similarity index 100% rename from .examples/docker-compose/insecure/mariadb-cron/fpm/db.env rename to .examples/docker-compose/insecure/mariadb-cron-redis/fpm/db.env diff --git a/.examples/docker-compose/insecure/mariadb-cron/fpm/docker-compose.yml b/.examples/docker-compose/insecure/mariadb-cron-redis/fpm/docker-compose.yml similarity index 81% rename from .examples/docker-compose/insecure/mariadb-cron/fpm/docker-compose.yml rename to .examples/docker-compose/insecure/mariadb-cron-redis/fpm/docker-compose.yml index 8a0f66f..a165ea5 100644 --- a/.examples/docker-compose/insecure/mariadb-cron/fpm/docker-compose.yml +++ b/.examples/docker-compose/insecure/mariadb-cron-redis/fpm/docker-compose.yml @@ -11,6 +11,10 @@ services: env_file: - db.env + redis: + image: redis + restart: always + app: image: friendica/server:fpm restart: always @@ -18,6 +22,8 @@ services: - friendica:/var/www/html environment: - AUTOINSTALL=true + - CACHE_DRIVER=redis + - REDIS_HOST=redis - MAILNAME= - TZ= - LANGUAGE= @@ -34,6 +40,8 @@ services: - friendica:/var/www/html entrypoint: /cron.sh environment: + - CACHE_DRIVER=redis + - REDIS_HOST=redis - MAILNAME= - TZ= - LANGUAGE= diff --git a/.examples/docker-compose/insecure/mariadb-cron/fpm/web/nginx.conf b/.examples/docker-compose/insecure/mariadb-cron-redis/fpm/web/nginx.conf similarity index 100% rename from .examples/docker-compose/insecure/mariadb-cron/fpm/web/nginx.conf rename to .examples/docker-compose/insecure/mariadb-cron-redis/fpm/web/nginx.conf diff --git a/2018.05/apache/Dockerfile b/2018.05/apache/Dockerfile index 8f6f7f0..79bd022 100644 --- a/2018.05/apache/Dockerfile +++ b/2018.05/apache/Dockerfile @@ -38,6 +38,7 @@ RUN set -ex; \ libmcrypt-dev \ imagemagick \ libmagick++-dev \ + libmemcached-dev \ libgraphicsmagick1-dev \ libfreetype6 \ libfreetype6-dev \ @@ -60,6 +61,15 @@ RUN set -ex; \ ; \ docker-php-ext-install -j 4 curl pdo pdo_mysql xml gd zip opcache mbstring posix ctype json iconv mcrypt \ ; \ +# pecl will claim success even if one install fails, so we need to perform each install separately + pecl install memcached-3.0.4; \ + pecl install redis-3.1.6; \ + \ + docker-php-ext-enable \ + memcached \ + redis \ + ; \ + \ # reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies apt-mark auto '.*' > /dev/null; \ apt-mark manual $savedAptMark; \ diff --git a/2018.05/apache/config/htconfig.php b/2018.05/apache/config/htconfig.php index ccd86da..4b67aa8 100644 --- a/2018.05/apache/config/htconfig.php +++ b/2018.05/apache/config/htconfig.php @@ -110,4 +110,28 @@ $a->config['system']['auth_cookie_lifetime'] = 7; if (!empty(getenv('VALIDATION'))) { $a->config['system']['disable_url_validation'] = strtolower(getenv('VALIDATION')); $a->config['system']['disable_email_validation'] = strtolower(getenv('VALIDATION')); +} + +if (!empty(getenv('CACHE_DRIVER'))) { + $a->config['system']['cache_driver'] = strtolower(getenv('CACHE_DRIVER')); + + if (!empty(getenv('REDIS_HOST'))) { + $a->config['system']['redis_host'] = getenv('REDIS_HOST'); + } + + if (!empty(getenv('REDIS_PORT'))) { + $a->config['system']['redis_port'] = getenv('REDIS_PORT'); + } + + if (!empty(getenv('MEMCACHE_HOST'))) { + $a->config['system']['memcache_host'] = getenv('MEMCACHE_HOST'); + } + + if (!empty(getenv('MEMCACHE_PORT'))) { + $a->config['system']['memcache_port'] = getenv('MEMCACHE_PORT'); + } + + if (!empty(getenv('MEMCACHED_HOSTS'))) { + $a->config['system']['memcached_hosts'] = getenv('MEMCACHED_HOSTS'); + } } \ No newline at end of file diff --git a/2018.05/fpm-alpine/Dockerfile b/2018.05/fpm-alpine/Dockerfile index a50eec8..5123160 100644 --- a/2018.05/fpm-alpine/Dockerfile +++ b/2018.05/fpm-alpine/Dockerfile @@ -31,6 +31,8 @@ RUN set -ex; \ libtool \ libmcrypt \ libmcrypt-dev \ + libmemcached-dev \ + cyrus-sasl-dev \ freetype \ libpng \ libjpeg-turbo-dev \ @@ -55,6 +57,15 @@ RUN set -ex; \ ; \ docker-php-ext-install -j 4 curl pdo pdo_mysql xml gd zip opcache mbstring posix ctype json iconv mcrypt; \ \ +# pecl will claim success even if one install fails, so we need to perform each install separately + pecl install memcached-3.0.4; \ + pecl install redis-3.1.6; \ + \ + docker-php-ext-enable \ + memcached \ + redis \ + ; \ + \ runDeps="$( \ scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \ | tr ',' '\n' \ diff --git a/2018.05/fpm-alpine/config/htconfig.php b/2018.05/fpm-alpine/config/htconfig.php index ccd86da..4b67aa8 100644 --- a/2018.05/fpm-alpine/config/htconfig.php +++ b/2018.05/fpm-alpine/config/htconfig.php @@ -110,4 +110,28 @@ $a->config['system']['auth_cookie_lifetime'] = 7; if (!empty(getenv('VALIDATION'))) { $a->config['system']['disable_url_validation'] = strtolower(getenv('VALIDATION')); $a->config['system']['disable_email_validation'] = strtolower(getenv('VALIDATION')); +} + +if (!empty(getenv('CACHE_DRIVER'))) { + $a->config['system']['cache_driver'] = strtolower(getenv('CACHE_DRIVER')); + + if (!empty(getenv('REDIS_HOST'))) { + $a->config['system']['redis_host'] = getenv('REDIS_HOST'); + } + + if (!empty(getenv('REDIS_PORT'))) { + $a->config['system']['redis_port'] = getenv('REDIS_PORT'); + } + + if (!empty(getenv('MEMCACHE_HOST'))) { + $a->config['system']['memcache_host'] = getenv('MEMCACHE_HOST'); + } + + if (!empty(getenv('MEMCACHE_PORT'))) { + $a->config['system']['memcache_port'] = getenv('MEMCACHE_PORT'); + } + + if (!empty(getenv('MEMCACHED_HOSTS'))) { + $a->config['system']['memcached_hosts'] = getenv('MEMCACHED_HOSTS'); + } } \ No newline at end of file diff --git a/2018.05/fpm/Dockerfile b/2018.05/fpm/Dockerfile index 55651fc..23ce007 100644 --- a/2018.05/fpm/Dockerfile +++ b/2018.05/fpm/Dockerfile @@ -38,6 +38,7 @@ RUN set -ex; \ libmcrypt-dev \ imagemagick \ libmagick++-dev \ + libmemcached-dev \ libgraphicsmagick1-dev \ libfreetype6 \ libfreetype6-dev \ @@ -60,6 +61,15 @@ RUN set -ex; \ ; \ docker-php-ext-install -j 4 curl pdo pdo_mysql xml gd zip opcache mbstring posix ctype json iconv mcrypt \ ; \ +# pecl will claim success even if one install fails, so we need to perform each install separately + pecl install memcached-3.0.4; \ + pecl install redis-3.1.6; \ + \ + docker-php-ext-enable \ + memcached \ + redis \ + ; \ + \ # reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies apt-mark auto '.*' > /dev/null; \ apt-mark manual $savedAptMark; \ diff --git a/2018.05/fpm/config/htconfig.php b/2018.05/fpm/config/htconfig.php index ccd86da..4b67aa8 100644 --- a/2018.05/fpm/config/htconfig.php +++ b/2018.05/fpm/config/htconfig.php @@ -110,4 +110,28 @@ $a->config['system']['auth_cookie_lifetime'] = 7; if (!empty(getenv('VALIDATION'))) { $a->config['system']['disable_url_validation'] = strtolower(getenv('VALIDATION')); $a->config['system']['disable_email_validation'] = strtolower(getenv('VALIDATION')); +} + +if (!empty(getenv('CACHE_DRIVER'))) { + $a->config['system']['cache_driver'] = strtolower(getenv('CACHE_DRIVER')); + + if (!empty(getenv('REDIS_HOST'))) { + $a->config['system']['redis_host'] = getenv('REDIS_HOST'); + } + + if (!empty(getenv('REDIS_PORT'))) { + $a->config['system']['redis_port'] = getenv('REDIS_PORT'); + } + + if (!empty(getenv('MEMCACHE_HOST'))) { + $a->config['system']['memcache_host'] = getenv('MEMCACHE_HOST'); + } + + if (!empty(getenv('MEMCACHE_PORT'))) { + $a->config['system']['memcache_port'] = getenv('MEMCACHE_PORT'); + } + + if (!empty(getenv('MEMCACHED_HOSTS'))) { + $a->config['system']['memcached_hosts'] = getenv('MEMCACHED_HOSTS'); + } } \ No newline at end of file diff --git a/2018.08-dev/apache/Dockerfile b/2018.08-dev/apache/Dockerfile index 5669ba1..95e353f 100644 --- a/2018.08-dev/apache/Dockerfile +++ b/2018.08-dev/apache/Dockerfile @@ -38,6 +38,7 @@ RUN set -ex; \ libmcrypt-dev \ imagemagick \ libmagick++-dev \ + libmemcached-dev \ libgraphicsmagick1-dev \ libfreetype6 \ libfreetype6-dev \ @@ -60,6 +61,15 @@ RUN set -ex; \ ; \ docker-php-ext-install -j 4 curl pdo pdo_mysql xml gd zip opcache mbstring posix ctype json iconv mcrypt \ ; \ +# pecl will claim success even if one install fails, so we need to perform each install separately + pecl install memcached-3.0.4; \ + pecl install redis-3.1.6; \ + \ + docker-php-ext-enable \ + memcached \ + redis \ + ; \ + \ # reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies apt-mark auto '.*' > /dev/null; \ apt-mark manual $savedAptMark; \ diff --git a/2018.08-dev/apache/config/htconfig.php b/2018.08-dev/apache/config/htconfig.php index ccd86da..4b67aa8 100644 --- a/2018.08-dev/apache/config/htconfig.php +++ b/2018.08-dev/apache/config/htconfig.php @@ -110,4 +110,28 @@ $a->config['system']['auth_cookie_lifetime'] = 7; if (!empty(getenv('VALIDATION'))) { $a->config['system']['disable_url_validation'] = strtolower(getenv('VALIDATION')); $a->config['system']['disable_email_validation'] = strtolower(getenv('VALIDATION')); +} + +if (!empty(getenv('CACHE_DRIVER'))) { + $a->config['system']['cache_driver'] = strtolower(getenv('CACHE_DRIVER')); + + if (!empty(getenv('REDIS_HOST'))) { + $a->config['system']['redis_host'] = getenv('REDIS_HOST'); + } + + if (!empty(getenv('REDIS_PORT'))) { + $a->config['system']['redis_port'] = getenv('REDIS_PORT'); + } + + if (!empty(getenv('MEMCACHE_HOST'))) { + $a->config['system']['memcache_host'] = getenv('MEMCACHE_HOST'); + } + + if (!empty(getenv('MEMCACHE_PORT'))) { + $a->config['system']['memcache_port'] = getenv('MEMCACHE_PORT'); + } + + if (!empty(getenv('MEMCACHED_HOSTS'))) { + $a->config['system']['memcached_hosts'] = getenv('MEMCACHED_HOSTS'); + } } \ No newline at end of file diff --git a/2018.08-dev/fpm-alpine/Dockerfile b/2018.08-dev/fpm-alpine/Dockerfile index a25dac5..2723c60 100644 --- a/2018.08-dev/fpm-alpine/Dockerfile +++ b/2018.08-dev/fpm-alpine/Dockerfile @@ -31,6 +31,8 @@ RUN set -ex; \ libtool \ libmcrypt \ libmcrypt-dev \ + libmemcached-dev \ + cyrus-sasl-dev \ freetype \ libpng \ libjpeg-turbo-dev \ @@ -55,6 +57,15 @@ RUN set -ex; \ ; \ docker-php-ext-install -j 4 curl pdo pdo_mysql xml gd zip opcache mbstring posix ctype json iconv mcrypt; \ \ +# pecl will claim success even if one install fails, so we need to perform each install separately + pecl install memcached-3.0.4; \ + pecl install redis-3.1.6; \ + \ + docker-php-ext-enable \ + memcached \ + redis \ + ; \ + \ runDeps="$( \ scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \ | tr ',' '\n' \ diff --git a/2018.08-dev/fpm-alpine/config/htconfig.php b/2018.08-dev/fpm-alpine/config/htconfig.php index ccd86da..4b67aa8 100644 --- a/2018.08-dev/fpm-alpine/config/htconfig.php +++ b/2018.08-dev/fpm-alpine/config/htconfig.php @@ -110,4 +110,28 @@ $a->config['system']['auth_cookie_lifetime'] = 7; if (!empty(getenv('VALIDATION'))) { $a->config['system']['disable_url_validation'] = strtolower(getenv('VALIDATION')); $a->config['system']['disable_email_validation'] = strtolower(getenv('VALIDATION')); +} + +if (!empty(getenv('CACHE_DRIVER'))) { + $a->config['system']['cache_driver'] = strtolower(getenv('CACHE_DRIVER')); + + if (!empty(getenv('REDIS_HOST'))) { + $a->config['system']['redis_host'] = getenv('REDIS_HOST'); + } + + if (!empty(getenv('REDIS_PORT'))) { + $a->config['system']['redis_port'] = getenv('REDIS_PORT'); + } + + if (!empty(getenv('MEMCACHE_HOST'))) { + $a->config['system']['memcache_host'] = getenv('MEMCACHE_HOST'); + } + + if (!empty(getenv('MEMCACHE_PORT'))) { + $a->config['system']['memcache_port'] = getenv('MEMCACHE_PORT'); + } + + if (!empty(getenv('MEMCACHED_HOSTS'))) { + $a->config['system']['memcached_hosts'] = getenv('MEMCACHED_HOSTS'); + } } \ No newline at end of file diff --git a/2018.08-dev/fpm/Dockerfile b/2018.08-dev/fpm/Dockerfile index de0f5ab..32177c7 100644 --- a/2018.08-dev/fpm/Dockerfile +++ b/2018.08-dev/fpm/Dockerfile @@ -38,6 +38,7 @@ RUN set -ex; \ libmcrypt-dev \ imagemagick \ libmagick++-dev \ + libmemcached-dev \ libgraphicsmagick1-dev \ libfreetype6 \ libfreetype6-dev \ @@ -60,6 +61,15 @@ RUN set -ex; \ ; \ docker-php-ext-install -j 4 curl pdo pdo_mysql xml gd zip opcache mbstring posix ctype json iconv mcrypt \ ; \ +# pecl will claim success even if one install fails, so we need to perform each install separately + pecl install memcached-3.0.4; \ + pecl install redis-3.1.6; \ + \ + docker-php-ext-enable \ + memcached \ + redis \ + ; \ + \ # reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies apt-mark auto '.*' > /dev/null; \ apt-mark manual $savedAptMark; \ diff --git a/2018.08-dev/fpm/config/htconfig.php b/2018.08-dev/fpm/config/htconfig.php index ccd86da..4b67aa8 100644 --- a/2018.08-dev/fpm/config/htconfig.php +++ b/2018.08-dev/fpm/config/htconfig.php @@ -110,4 +110,28 @@ $a->config['system']['auth_cookie_lifetime'] = 7; if (!empty(getenv('VALIDATION'))) { $a->config['system']['disable_url_validation'] = strtolower(getenv('VALIDATION')); $a->config['system']['disable_email_validation'] = strtolower(getenv('VALIDATION')); +} + +if (!empty(getenv('CACHE_DRIVER'))) { + $a->config['system']['cache_driver'] = strtolower(getenv('CACHE_DRIVER')); + + if (!empty(getenv('REDIS_HOST'))) { + $a->config['system']['redis_host'] = getenv('REDIS_HOST'); + } + + if (!empty(getenv('REDIS_PORT'))) { + $a->config['system']['redis_port'] = getenv('REDIS_PORT'); + } + + if (!empty(getenv('MEMCACHE_HOST'))) { + $a->config['system']['memcache_host'] = getenv('MEMCACHE_HOST'); + } + + if (!empty(getenv('MEMCACHE_PORT'))) { + $a->config['system']['memcache_port'] = getenv('MEMCACHE_PORT'); + } + + if (!empty(getenv('MEMCACHED_HOSTS'))) { + $a->config['system']['memcached_hosts'] = getenv('MEMCACHED_HOSTS'); + } } \ No newline at end of file diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template index f66e763..936115a 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -30,6 +30,8 @@ RUN set -ex; \ libtool \ libmcrypt \ libmcrypt-dev \ + libmemcached-dev \ + cyrus-sasl-dev \ freetype \ libpng \ libjpeg-turbo-dev \ @@ -54,6 +56,15 @@ RUN set -ex; \ ; \ docker-php-ext-install -j 4 curl pdo pdo_mysql xml gd zip opcache mbstring posix ctype json iconv mcrypt; \ \ +# pecl will claim success even if one install fails, so we need to perform each install separately + pecl install memcached-%%MEMCACHED_VERSION%%; \ + pecl install redis-%%REDIS_VERSION%%; \ + \ + docker-php-ext-enable \ + memcached \ + redis \ + ; \ + \ runDeps="$( \ scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \ | tr ',' '\n' \ diff --git a/Dockerfile-debian.template b/Dockerfile-debian.template index 4ad1e58..05e1764 100644 --- a/Dockerfile-debian.template +++ b/Dockerfile-debian.template @@ -37,6 +37,7 @@ RUN set -ex; \ libmcrypt-dev \ imagemagick \ libmagick++-dev \ + libmemcached-dev \ libgraphicsmagick1-dev \ libfreetype6 \ libfreetype6-dev \ @@ -59,6 +60,15 @@ RUN set -ex; \ ; \ docker-php-ext-install -j 4 curl pdo pdo_mysql xml gd zip opcache mbstring posix ctype json iconv mcrypt \ ; \ +# pecl will claim success even if one install fails, so we need to perform each install separately + pecl install memcached-%%MEMCACHED_VERSION%%; \ + pecl install redis-%%REDIS_VERSION%%; \ + \ + docker-php-ext-enable \ + memcached \ + redis \ + ; \ + \ # reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies apt-mark auto '.*' > /dev/null; \ apt-mark manual $savedAptMark; \ diff --git a/README.md b/README.md index a865128..9cd0fb3 100644 --- a/README.md +++ b/README.md @@ -69,19 +69,19 @@ There are three options to enable the cron-job for Friendica: This is the full list of all possible environment variables used for this image: **Common** -- `MAILNAME` E-Mail address of the administrator (**required**) -- `TZ` The default localization of the Friendica server (Default: `America/Los_Angeles`) -- `LANGUAGE` The default language of the Friendica server (Default: `en`) -- `SITENAME` The default name of the Friendica server (Default: `Friendica Social Network` ) -- `VALIDATION` The default setting if url/emails are getting validated (Default: `true`) -- `AUTOINSTALL` if `true`, the automatic configuration will start (Default: `false`) +- `MAILNAME` E-Mail address of the administrator. (**required**) +- `TZ` The default localization of the Friendica server. (Default: `America/Los_Angeles`) +- `LANGUAGE` The default language of the Friendica server. (Default: `en`) +- `SITENAME` The default name of the Friendica server. (Default: `Friendica Social Network` ) +- `VALIDATION` The default setting if url/emails are getting validated. (Default: `true`) +- `AUTOINSTALL` if `true`, the automatic configuration will start. (Default: `false`) **SMTP/Mail** -- `SMTP` address of the SMTP Mail-Gateway (**required** - Default: `localhost`) -- `SMTP_FROM` sender user-part of the address (Default: `no-reply` - e.g. no-reply@friendica.local) -- `SMTP_AUTH_USER` Username for the SMTP Mail-Gateway (Default: empty) -- `SMTP_AUTH_PASS` Password for the SMTP Mail-Gateway (Default: empty) -- `SMTP_AUTH_METHOD` Authentication method for the SMTP Mail-Gateway (Default: empty/plain text) +- `SMTP` Address of the SMTP Mail-Gateway. (**required** - Default: `localhost`) +- `SMTP_FROM` Sender user-part of the address. (Default: `no-reply` - e.g. no-reply@friendica.local) +- `SMTP_AUTH_USER` Username for the SMTP Mail-Gateway. (Default: empty) +- `SMTP_AUTH_PASS` Password for the SMTP Mail-Gateway. (Default: empty) +- `SMTP_AUTH_METHOD` Authentication method for the SMTP Mail-Gateway. (Default: empty/plain text) **Database** (**required**) - `MYSQL_USERNAME` Username for the database user using mysql. @@ -91,6 +91,15 @@ This is the full list of all possible environment variables used for this image: - `MYSQL_HOST` Hostname of the database server using mysql / mariadb. - `MYSQL_PORT` Port of the database server using mysql / mariadb. +**Caching** +- `CACHE_DRIVER` Driver of the Friendica cache (`memcache`, `memcached` or `redis`) +- `MEMCACHE_HOST` Host of the memcache cache server. (Default: `127.0.0.1`) +- `MEMCACHE_PORT` Port of the memcache cache server. (Default: `11211`) +- `MEMCACHED_HOSTS` Hosts of the memcached cache server. (Default: `[['127.0.0.1', 11211]]`) +- `REDIS_HOST` Host of the redis cache server. (Default: `127.0.0.1`) +- `REDIS_PORT` Port of the redis cache server. (Default: `6379`) + + ## Administrator account Because Friendica links the administrator account to a specific mail address, you **have** to set a valid address for `MAILNAME`. diff --git a/update.sh b/update.sh index aee65be..0886257 100755 --- a/update.sh +++ b/update.sh @@ -25,6 +25,8 @@ declare -A extras=( declare -A pecl_versions=( [Imagick]='3.4.3' + [memcached]='3.0.4' + [redis]='3.1.6' ) declare -A install_extras=( @@ -73,6 +75,8 @@ function create_variant() { s|%%VARIANT_EXTRAS%%|'"${extras[$variant]}"'|g; s|%%INSTALL_EXTRAS%%|'"${install_extras[$install_type]}"'|g; s/%%IMAGICK_VERSION%%/'"${pecl_versions[Imagick]}"'/g; + s/%%MEMCACHED_VERSION%%/'"${pecl_versions[memcached]}"'/g; + s/%%REDIS_VERSION%%/'"${pecl_versions[redis]}"'/g; ' "$dir/Dockerfile" # Copy the shell scripts