Skip to content

Commit 078f8b4

Browse files
authored
[laravel] Update to v8.70 and php 8.1 (#6908)
* [laravel] Update to php 8.1 * Update laravel to v8.70 * Update laravel roadrunner composer
1 parent 4abccc8 commit 078f8b4

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

frameworks/PHP/laravel/benchmark_config.json

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

frameworks/PHP/laravel/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"license": "MIT",
1010
"require": {
11-
"laravel/framework": "^8.16"
11+
"laravel/framework": "^8.70"
1212
},
1313
"require-dev": {
1414
"facade/ignition": "^2.3.6",

frameworks/PHP/laravel/deploy/roadrunner/composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
],
99
"license": "MIT",
1010
"require": {
11-
"laravel/framework": "^8.16",
11+
"laravel/framework": "^8.70",
1212
"nyholm/psr7": "*",
13-
"spiral/roadrunner": "^2.0",
14-
"spiral/roadrunner-laravel": "^4.0"
13+
"spiral/roadrunner": "^2.5",
14+
"spiral/roadrunner-laravel": "^5.4"
1515
},
1616
"require-dev": {
1717
"facade/ignition": "^2.3.6",

frameworks/PHP/laravel/laravel.dockerfile

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ 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-cli php8.0-fpm php8.0-mysql > /dev/null
10-
RUN apt-get install -yqq php8.0-mbstring php8.0-xml > /dev/null
9+
php8.1-cli php8.1-fpm php8.1-mysql > /dev/null
10+
RUN apt-get install -yqq php8.1-mbstring php8.1-xml php8.1-dev > /dev/null
1111

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

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

1616
ADD ./ /laravel
1717
WORKDIR /laravel
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 mkdir -p /laravel/bootstrap/cache /laravel/storage/logs /laravel/storage/framework/sessions /laravel/storage/framework/views /laravel/storage/framework/cache
2222
RUN chmod -R 777 /laravel
@@ -27,8 +27,8 @@ RUN php artisan optimize
2727
EXPOSE 8080
2828

2929
# Uncomment next line for Laravel console error logging to be viewable in docker logs
30-
# RUN echo "catch_workers_output = yes" >> /etc/php/8.0/fpm/php-fpm.conf
30+
# RUN echo "catch_workers_output = yes" >> /etc/php/8.1/fpm/php-fpm.conf
3131

3232
RUN mkdir -p /run/php
33-
CMD /usr/sbin/php-fpm8.0 --fpm-config /etc/php/8.0/fpm/php-fpm.conf && nginx -c /laravel/deploy/nginx.conf
33+
CMD /usr/sbin/php-fpm8.1 --fpm-config /etc/php/8.1/fpm/php-fpm.conf && nginx -c /laravel/deploy/nginx.conf
3434

0 commit comments

Comments
 (0)