Skip to content

Commit

Permalink
Merge pull request #9529 from joanhey/react-php8.4
Browse files Browse the repository at this point in the history
[php] Reactphp update to PHP/8.4
  • Loading branch information
msmith-techempower authored Jan 16, 2025
2 parents 0a9ab06 + e531612 commit f56b5fa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
4 changes: 0 additions & 4 deletions frameworks/PHP/reactphp/benchmark_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
"tests": [{
"default": {
"json_url": "/json",
"db_url": "/db",
"query_url": "/query?q=",
"fortune_url": "/fortunes",
"update_url": "/update?q=",
"plaintext_url": "/plaintext",
"port": 8080,
"approach": "Realistic",
Expand Down
26 changes: 15 additions & 11 deletions frameworks/PHP/reactphp/reactphp.dockerfile
Original file line number Diff line number Diff line change
@@ -1,29 +1,33 @@
FROM ubuntu:22.04
FROM ubuntu:24.04

ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /dev/null
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php > /dev/null
RUN apt-get update -yqq > /dev/null && \
apt-get install -yqq git unzip wget curl build-essential \
php8.3-cli php8.3-mbstring php8.3-dev php8.3-xml > /dev/null
php8.4-cli php8.4-mbstring php8.4-dev php8.4-xml > /dev/null

# An extension is required!
# We deal with concurrencies over 1k, which stream_select doesn't support.
RUN apt-get install -yqq libuv1-dev > /dev/null \
&& pecl install uv-beta > /dev/null \
&& echo "extension=uv.so" > /etc/php/8.3/cli/conf.d/uv.ini
# libuv
# RUN apt-get install -yqq libuv1-dev > /dev/null \
# && pecl install uv-beta > /dev/null \
# && echo "extension=uv.so" > /etc/php/8.4/cli/conf.d/uv.ini

# libevent
RUN apt-get install -y libevent-dev > /dev/null \
&& pecl install event-3.1.4 > /dev/null \
&& echo "extension=event.so" > /etc/php/8.4/cli/conf.d/event.ini

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

COPY deploy/conf/* /etc/php/8.3/cli/conf.d/
COPY --link deploy/conf/* /etc/php/8.4/cli/conf.d/

WORKDIR /reactphp
COPY --link . .

COPY composer.json .
RUN composer install --prefer-dist --optimize-autoloader --no-dev --quiet

COPY . .
RUN composer install --prefer-dist --optimize-autoloader --no-dev

EXPOSE 8080

Expand Down

0 comments on commit f56b5fa

Please sign in to comment.