changed the docker files to increase php's max_execution_time to 120
This commit is contained in:
parent
1b34dfaa87
commit
53951a1c5b
@ -4,11 +4,12 @@ FROM rockylinux/rockylinux:latest
|
||||
## epel-release for mod_perl
|
||||
RUN dnf install -y epel-release
|
||||
|
||||
# for mysql access, include php-mysqli and perl-DBD-MYSQL
|
||||
RUN dnf install -y \
|
||||
subversion subversion-perl \
|
||||
httpd php php-mysqli php-gd php-pdo \
|
||||
httpd php php-gd php-pdo php-ldap \
|
||||
perl-Digest-SHA perl-Config-Simple \
|
||||
perl-DBD-MySQL perl-DBD-SQLite perl-LDAP perl-Mail-Sendmail \
|
||||
perl-DBD-SQLite perl-LDAP perl-Mail-Sendmail \
|
||||
mod_dav_svn mod_perl diffutils sqlite
|
||||
|
||||
RUN dnf install -y php-devel subversion-devel perl-devel make
|
||||
|
@ -3,7 +3,7 @@ FROM ubuntu:20.04
|
||||
RUN apt update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends \
|
||||
subversion apache2 \
|
||||
php libapache2-mod-php php-gd php-sqlite3 \
|
||||
php libapache2-mod-php php-gd php-sqlite3 php-ldap \
|
||||
libapache2-mod-perl2 libapache2-mod-svn \
|
||||
libswitch-perl libconfig-simple-perl libdigest-sha-perl \
|
||||
libdbd-sqlite3-perl libnet-ldap-perl libsvn-perl libmail-sendmail-perl \
|
||||
|
@ -26,7 +26,9 @@ sed -ri -e 's|Digest::SHA1|Digest::SHA|g' /usr/sbin/codepot-user && \
|
||||
sed -ri -e 's|Digest::SHA1|Digest::SHA|g' /etc/codepot/perl/Codepot/AccessHandler.pm && \
|
||||
mkdir -p /run/php-fpm && \
|
||||
cp -pf /etc/codepot/codepot.httpd /etc/httpd/conf.d/codepot.conf && \
|
||||
echo "PerlSwitches -Mlib=/etc/codepot/perl" >> /etc/httpd/conf.d/perl.conf
|
||||
echo "PerlSwitches -Mlib=/etc/codepot/perl" >> /etc/httpd/conf.d/perl.conf && \
|
||||
sed -ri -e 's|^max_execution_time[[:space:]]*=.*$|max_execution_time = 120|g' /etc/php.ini
|
||||
|
||||
|
||||
# mod_perl has dependency on perl-devel which i think is wrong.
|
||||
# so i can't get perl-devel removed.
|
||||
|
@ -28,7 +28,8 @@ sed -ri -e 's|^database_hostname[[:space:]]*=[[:space:]]*"localhost"$|database_h
|
||||
sed -ri -e 's|Digest::SHA1|Digest::SHA|g' /usr/sbin/codepot-user && \
|
||||
sed -ri -e 's|Digest::SHA1|Digest::SHA|g' /etc/codepot/perl/Codepot/AccessHandler.pm && \
|
||||
cp -pf /etc/codepot/codepot.httpd /etc/apache2/conf-enabled/codepot.conf && \
|
||||
echo "PerlSwitches -Mlib=/etc/codepot/perl" >> /etc/apache2/conf-enabled/perl.conf
|
||||
echo "PerlSwitches -Mlib=/etc/codepot/perl" >> /etc/apache2/conf-enabled/perl.conf && \
|
||||
sed -ri -e 's|^max_execution_time[[:space:]]*=.*$|max_execution_time = 120|g' /etc/php/*/apache2/php.ini
|
||||
|
||||
|
||||
apt remove --purge -y --allow-remove-essential php-dev libsvn-dev make libfdisk1 && \
|
||||
|
Loading…
Reference in New Issue
Block a user