0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-06-16 16:14:47 +02:00

Run update.sh

This commit is contained in:
Alexander Sosna 2021-01-14 18:53:04 +01:00
parent 99a71b7855
commit 6a02b60ce2
24 changed files with 100 additions and 12 deletions

View file

@ -98,7 +98,7 @@ RUN { \
\ \
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \ echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\ \
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \ touch /usr/local/etc/php/conf.d/memory-limit.ini; \
\ \
mkdir /var/www/data; \ mkdir /var/www/data; \
chown -R www-data:root /var/www; \ chown -R www-data:root /var/www; \

View file

@ -43,6 +43,13 @@ file_env() {
unset "$fileVar" unset "$fileVar"
} }
# Get essential PHP_INI configuration
file_env PHP_INI_MEMORY_LIMIT 512M
# Set essential PHP_INI configuration
# It is important to set essential variables like 'memory-limit' before the first start to premvent OOM during installation and statup.
echo "memory_limit=${PHP_INI_MEMORY_LIMIT}" > /usr/local/etc/php/conf.d/memory-limit.ini;
if expr "$1" : "apache" 1>/dev/null; then if expr "$1" : "apache" 1>/dev/null; then
if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then
a2disconf remoteip a2disconf remoteip

View file

@ -74,6 +74,7 @@ RUN set -ex; \
# set recommended PHP.ini settings # set recommended PHP.ini settings
# see https://docs.nextcloud.com/server/12/admin_manual/configuration_server/server_tuning.html#enable-php-opcache # see https://docs.nextcloud.com/server/12/admin_manual/configuration_server/server_tuning.html#enable-php-opcache
ENV PHP_INI_MEMORY_LIMIT %%PHP_INI_MEMORY_LIMIT%%
RUN { \ RUN { \
echo 'opcache.enable=1'; \ echo 'opcache.enable=1'; \
echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.interned_strings_buffer=8'; \
@ -85,7 +86,7 @@ RUN { \
\ \
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \ echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\ \
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \ touch /usr/local/etc/php/conf.d/memory-limit.ini; \
\ \
mkdir /var/www/data; \ mkdir /var/www/data; \
chown -R www-data:root /var/www; \ chown -R www-data:root /var/www; \

View file

@ -43,6 +43,13 @@ file_env() {
unset "$fileVar" unset "$fileVar"
} }
# Get essential PHP_INI configuration
file_env PHP_INI_MEMORY_LIMIT 512M
# Set essential PHP_INI configuration
# It is important to set essential variables like 'memory-limit' before the first start to premvent OOM during installation and statup.
echo "memory_limit=${PHP_INI_MEMORY_LIMIT}" > /usr/local/etc/php/conf.d/memory-limit.ini;
if expr "$1" : "apache" 1>/dev/null; then if expr "$1" : "apache" 1>/dev/null; then
if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then
a2disconf remoteip a2disconf remoteip

View file

@ -98,7 +98,7 @@ RUN { \
\ \
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \ echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\ \
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \ touch /usr/local/etc/php/conf.d/memory-limit.ini; \
\ \
mkdir /var/www/data; \ mkdir /var/www/data; \
chown -R www-data:root /var/www; \ chown -R www-data:root /var/www; \

View file

@ -43,6 +43,13 @@ file_env() {
unset "$fileVar" unset "$fileVar"
} }
# Get essential PHP_INI configuration
file_env PHP_INI_MEMORY_LIMIT 512M
# Set essential PHP_INI configuration
# It is important to set essential variables like 'memory-limit' before the first start to premvent OOM during installation and statup.
echo "memory_limit=${PHP_INI_MEMORY_LIMIT}" > /usr/local/etc/php/conf.d/memory-limit.ini;
if expr "$1" : "apache" 1>/dev/null; then if expr "$1" : "apache" 1>/dev/null; then
if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then
a2disconf remoteip a2disconf remoteip

View file

@ -97,7 +97,7 @@ RUN { \
\ \
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \ echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\ \
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \ touch /usr/local/etc/php/conf.d/memory-limit.ini; \
\ \
mkdir /var/www/data; \ mkdir /var/www/data; \
chown -R www-data:root /var/www; \ chown -R www-data:root /var/www; \

View file

@ -43,6 +43,13 @@ file_env() {
unset "$fileVar" unset "$fileVar"
} }
# Get essential PHP_INI configuration
file_env PHP_INI_MEMORY_LIMIT 512M
# Set essential PHP_INI configuration
# It is important to set essential variables like 'memory-limit' before the first start to premvent OOM during installation and statup.
echo "memory_limit=${PHP_INI_MEMORY_LIMIT}" > /usr/local/etc/php/conf.d/memory-limit.ini;
if expr "$1" : "apache" 1>/dev/null; then if expr "$1" : "apache" 1>/dev/null; then
if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then
a2disconf remoteip a2disconf remoteip

View file

@ -75,6 +75,7 @@ RUN set -ex; \
# set recommended PHP.ini settings # set recommended PHP.ini settings
# see https://docs.nextcloud.com/server/12/admin_manual/configuration_server/server_tuning.html#enable-php-opcache # see https://docs.nextcloud.com/server/12/admin_manual/configuration_server/server_tuning.html#enable-php-opcache
ENV PHP_INI_MEMORY_LIMIT %%PHP_INI_MEMORY_LIMIT%%
RUN { \ RUN { \
echo 'opcache.enable=1'; \ echo 'opcache.enable=1'; \
echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.interned_strings_buffer=8'; \
@ -86,7 +87,7 @@ RUN { \
\ \
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \ echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\ \
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \ touch /usr/local/etc/php/conf.d/memory-limit.ini; \
\ \
mkdir /var/www/data; \ mkdir /var/www/data; \
chown -R www-data:root /var/www; \ chown -R www-data:root /var/www; \

View file

@ -43,6 +43,13 @@ file_env() {
unset "$fileVar" unset "$fileVar"
} }
# Get essential PHP_INI configuration
file_env PHP_INI_MEMORY_LIMIT 512M
# Set essential PHP_INI configuration
# It is important to set essential variables like 'memory-limit' before the first start to premvent OOM during installation and statup.
echo "memory_limit=${PHP_INI_MEMORY_LIMIT}" > /usr/local/etc/php/conf.d/memory-limit.ini;
if expr "$1" : "apache" 1>/dev/null; then if expr "$1" : "apache" 1>/dev/null; then
if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then
a2disconf remoteip a2disconf remoteip

View file

@ -97,7 +97,7 @@ RUN { \
\ \
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \ echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\ \
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \ touch /usr/local/etc/php/conf.d/memory-limit.ini; \
\ \
mkdir /var/www/data; \ mkdir /var/www/data; \
chown -R www-data:root /var/www; \ chown -R www-data:root /var/www; \

View file

@ -43,6 +43,13 @@ file_env() {
unset "$fileVar" unset "$fileVar"
} }
# Get essential PHP_INI configuration
file_env PHP_INI_MEMORY_LIMIT 512M
# Set essential PHP_INI configuration
# It is important to set essential variables like 'memory-limit' before the first start to premvent OOM during installation and statup.
echo "memory_limit=${PHP_INI_MEMORY_LIMIT}" > /usr/local/etc/php/conf.d/memory-limit.ini;
if expr "$1" : "apache" 1>/dev/null; then if expr "$1" : "apache" 1>/dev/null; then
if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then
a2disconf remoteip a2disconf remoteip

View file

@ -97,7 +97,7 @@ RUN { \
\ \
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \ echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\ \
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \ touch /usr/local/etc/php/conf.d/memory-limit.ini; \
\ \
mkdir /var/www/data; \ mkdir /var/www/data; \
chown -R www-data:root /var/www; \ chown -R www-data:root /var/www; \

View file

@ -43,6 +43,13 @@ file_env() {
unset "$fileVar" unset "$fileVar"
} }
# Get essential PHP_INI configuration
file_env PHP_INI_MEMORY_LIMIT 512M
# Set essential PHP_INI configuration
# It is important to set essential variables like 'memory-limit' before the first start to premvent OOM during installation and statup.
echo "memory_limit=${PHP_INI_MEMORY_LIMIT}" > /usr/local/etc/php/conf.d/memory-limit.ini;
if expr "$1" : "apache" 1>/dev/null; then if expr "$1" : "apache" 1>/dev/null; then
if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then
a2disconf remoteip a2disconf remoteip

View file

@ -75,6 +75,7 @@ RUN set -ex; \
# set recommended PHP.ini settings # set recommended PHP.ini settings
# see https://docs.nextcloud.com/server/12/admin_manual/configuration_server/server_tuning.html#enable-php-opcache # see https://docs.nextcloud.com/server/12/admin_manual/configuration_server/server_tuning.html#enable-php-opcache
ENV PHP_INI_MEMORY_LIMIT %%PHP_INI_MEMORY_LIMIT%%
RUN { \ RUN { \
echo 'opcache.enable=1'; \ echo 'opcache.enable=1'; \
echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.interned_strings_buffer=8'; \
@ -86,7 +87,7 @@ RUN { \
\ \
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \ echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\ \
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \ touch /usr/local/etc/php/conf.d/memory-limit.ini; \
\ \
mkdir /var/www/data; \ mkdir /var/www/data; \
chown -R www-data:root /var/www; \ chown -R www-data:root /var/www; \

View file

@ -43,6 +43,13 @@ file_env() {
unset "$fileVar" unset "$fileVar"
} }
# Get essential PHP_INI configuration
file_env PHP_INI_MEMORY_LIMIT 512M
# Set essential PHP_INI configuration
# It is important to set essential variables like 'memory-limit' before the first start to premvent OOM during installation and statup.
echo "memory_limit=${PHP_INI_MEMORY_LIMIT}" > /usr/local/etc/php/conf.d/memory-limit.ini;
if expr "$1" : "apache" 1>/dev/null; then if expr "$1" : "apache" 1>/dev/null; then
if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then
a2disconf remoteip a2disconf remoteip

View file

@ -97,7 +97,7 @@ RUN { \
\ \
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \ echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\ \
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \ touch /usr/local/etc/php/conf.d/memory-limit.ini; \
\ \
mkdir /var/www/data; \ mkdir /var/www/data; \
chown -R www-data:root /var/www; \ chown -R www-data:root /var/www; \

View file

@ -43,6 +43,13 @@ file_env() {
unset "$fileVar" unset "$fileVar"
} }
# Get essential PHP_INI configuration
file_env PHP_INI_MEMORY_LIMIT 512M
# Set essential PHP_INI configuration
# It is important to set essential variables like 'memory-limit' before the first start to premvent OOM during installation and statup.
echo "memory_limit=${PHP_INI_MEMORY_LIMIT}" > /usr/local/etc/php/conf.d/memory-limit.ini;
if expr "$1" : "apache" 1>/dev/null; then if expr "$1" : "apache" 1>/dev/null; then
if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then
a2disconf remoteip a2disconf remoteip

View file

@ -97,7 +97,7 @@ RUN { \
\ \
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \ echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\ \
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \ touch /usr/local/etc/php/conf.d/memory-limit.ini; \
\ \
mkdir /var/www/data; \ mkdir /var/www/data; \
chown -R www-data:root /var/www; \ chown -R www-data:root /var/www; \

View file

@ -43,6 +43,13 @@ file_env() {
unset "$fileVar" unset "$fileVar"
} }
# Get essential PHP_INI configuration
file_env PHP_INI_MEMORY_LIMIT 512M
# Set essential PHP_INI configuration
# It is important to set essential variables like 'memory-limit' before the first start to premvent OOM during installation and statup.
echo "memory_limit=${PHP_INI_MEMORY_LIMIT}" > /usr/local/etc/php/conf.d/memory-limit.ini;
if expr "$1" : "apache" 1>/dev/null; then if expr "$1" : "apache" 1>/dev/null; then
if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then
a2disconf remoteip a2disconf remoteip

View file

@ -75,6 +75,7 @@ RUN set -ex; \
# set recommended PHP.ini settings # set recommended PHP.ini settings
# see https://docs.nextcloud.com/server/12/admin_manual/configuration_server/server_tuning.html#enable-php-opcache # see https://docs.nextcloud.com/server/12/admin_manual/configuration_server/server_tuning.html#enable-php-opcache
ENV PHP_INI_MEMORY_LIMIT %%PHP_INI_MEMORY_LIMIT%%
RUN { \ RUN { \
echo 'opcache.enable=1'; \ echo 'opcache.enable=1'; \
echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.interned_strings_buffer=8'; \
@ -86,7 +87,7 @@ RUN { \
\ \
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \ echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\ \
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \ touch /usr/local/etc/php/conf.d/memory-limit.ini; \
\ \
mkdir /var/www/data; \ mkdir /var/www/data; \
chown -R www-data:root /var/www; \ chown -R www-data:root /var/www; \

View file

@ -43,6 +43,13 @@ file_env() {
unset "$fileVar" unset "$fileVar"
} }
# Get essential PHP_INI configuration
file_env PHP_INI_MEMORY_LIMIT 512M
# Set essential PHP_INI configuration
# It is important to set essential variables like 'memory-limit' before the first start to premvent OOM during installation and statup.
echo "memory_limit=${PHP_INI_MEMORY_LIMIT}" > /usr/local/etc/php/conf.d/memory-limit.ini;
if expr "$1" : "apache" 1>/dev/null; then if expr "$1" : "apache" 1>/dev/null; then
if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then
a2disconf remoteip a2disconf remoteip

View file

@ -97,7 +97,7 @@ RUN { \
\ \
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \ echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\ \
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \ touch /usr/local/etc/php/conf.d/memory-limit.ini; \
\ \
mkdir /var/www/data; \ mkdir /var/www/data; \
chown -R www-data:root /var/www; \ chown -R www-data:root /var/www; \

View file

@ -43,6 +43,13 @@ file_env() {
unset "$fileVar" unset "$fileVar"
} }
# Get essential PHP_INI configuration
file_env PHP_INI_MEMORY_LIMIT 512M
# Set essential PHP_INI configuration
# It is important to set essential variables like 'memory-limit' before the first start to premvent OOM during installation and statup.
echo "memory_limit=${PHP_INI_MEMORY_LIMIT}" > /usr/local/etc/php/conf.d/memory-limit.ini;
if expr "$1" : "apache" 1>/dev/null; then if expr "$1" : "apache" 1>/dev/null; then
if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then
a2disconf remoteip a2disconf remoteip