Skip to content

Commit 5450445

Browse files
authored
[cakephp] Update to v4.3 and php 8.1 (#6906)
1 parent 93ec202 commit 5450445

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

frameworks/PHP/cakephp/benchmark_config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"database": "MySQL",
1515
"framework": "cakephp",
1616
"language": "PHP",
17-
"flavor": "PHP7",
17+
"flavor": "PHP8.1",
1818
"orm": "Full",
1919
"platform": "FPM/FastCGI",
2020
"webserver": "nginx",

frameworks/PHP/cakephp/cakephp.dockerfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@ RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /de
66
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
77
RUN apt-get update -yqq > /dev/null && \
88
apt-get install -yqq nginx git unzip \
9-
php8.0-fpm php8.0-mysql php8.0-xml php8.0-mbstring php8.0-intl > /dev/null
9+
php8.1-fpm php8.1-mysql php8.1-xml php8.1-mbstring php8.1-intl php8.1-dev > /dev/null
1010

1111
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
1212

13-
COPY deploy/conf/* /etc/php/8.0/fpm/
14-
COPY deploy/conf/* /etc/php/8.0/cli/
13+
COPY deploy/conf/* /etc/php/8.1/fpm/
14+
COPY deploy/conf/* /etc/php/8.1/cli/
1515

1616
ADD ./ /cakephp
1717
WORKDIR /cakephp
1818

19-
RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/8.0/fpm/php-fpm.conf ; fi;
19+
RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/8.1/fpm/php-fpm.conf ; fi;
2020

2121
RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
2222

2323
RUN chmod -R 777 /cakephp
2424

25-
CMD service php8.0-fpm start && \
25+
CMD service php8.1-fpm start && \
2626
nginx -c /cakephp/deploy/nginx.conf
2727

frameworks/PHP/cakephp/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "project",
66
"license": "MIT",
77
"require": {
8-
"cakephp/cakephp": "^4.1",
8+
"cakephp/cakephp": "^4.3",
99
"cakephp/plugin-installer": "^1.0"
1010
},
1111
"autoload": {

0 commit comments

Comments
 (0)