[blogs] Bump upload_max_filesize and max_execution_time (https://gitlab.gnome.org/Infrastructure/Infrastruct



commit 8e931db224278bd9b92eaeffeedb704aba68f3d7
Author: Andrea Veri <averi redhat com>
Date:   Tue Feb 5 17:14:02 2019 +0100

    Bump upload_max_filesize and max_execution_time 
(https://gitlab.gnome.org/Infrastructure/Infrastructure/issues/85)

 Dockerfile       | 5 ++++-
 gnome-custom.aug | 5 +++++
 2 files changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/Dockerfile b/Dockerfile
index 5167811..84325e4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,11 +2,14 @@ FROM centos/httpd-24-centos7
 
 USER root
 
-RUN yum install rh-php71-php rh-php71-php-cli rh-php71-php-common rh-php71-php-curl rh-php71-php-gd 
rh-php71-php-intl rh-php71-php-json rh-php71-php-mbstring rh-php71-php-mcrypt rh-php71-php-mysqlnd 
rh-php71-php-opcache rh-php71-php-readline rh-php71-php-soap rh-php71-php-xml rh-php71-php-xmlrpc 
rh-php71-php-zip -y
+RUN yum install rh-php71-php rh-php71-php-cli rh-php71-php-common rh-php71-php-curl rh-php71-php-gd 
rh-php71-php-intl rh-php71-php-json rh-php71-php-mbstring rh-php71-php-mcrypt rh-php71-php-mysqlnd 
rh-php71-php-opcache rh-php71-php-readline rh-php71-php-soap rh-php71-php-xml rh-php71-php-xmlrpc 
rh-php71-php-zip augtool -y
 
 RUN mkdir -p /srv/http/blogs.gnome.org/html
 COPY blogs.gnome.org.conf /etc/httpd/conf.d
 
+COPY gnome-custom.aug /tmp
+RUN augtool -f /tmp/gnome-custom.aug
+
 EXPOSE 8443
 
 USER 1001
diff --git a/gnome-custom.aug b/gnome-custom.aug
new file mode 100644
index 0000000..e24caf5
--- /dev/null
+++ b/gnome-custom.aug
@@ -0,0 +1,5 @@
+set /augeas/load/phpcustom/lens "PHP.lns"
+set /augeas/load/phpcustom/incl "/etc/opt/rh/rh-php71/php.ini"
+load
+set /files/etc/opt/rh/rh-php71/php.ini/PHP/upload_max_filesize 10M
+set /files/etc/opt/rh/rh-php71/php.ini/PHP/max_execution_time 300


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]