File tree Expand file tree Collapse file tree 3 files changed +65
-0
lines changed Expand file tree Collapse file tree 3 files changed +65
-0
lines changed Original file line number Diff line number Diff line change 140140 "versus" : " php" ,
141141 "tags" : []
142142 },
143+ "react" : {
144+ "plaintext_url" : " /plaintext" ,
145+ "json_url" : " /json" ,
146+ "db_url" : " /db" ,
147+ "update_url" : " /updates?queries=" ,
148+ "query_url" : " /queries?queries=" ,
149+ "fortune_url" : " /fortunes" ,
150+ "port" : 8080 ,
151+ "approach" : " Realistic" ,
152+ "classification" : " Fullstack" ,
153+ "database" : " Postgres" ,
154+ "framework" : " symfony" ,
155+ "language" : " PHP" ,
156+ "flavor" : " PHP8" ,
157+ "orm" : " Full" ,
158+ "platform" : " reactphp" ,
159+ "webserver" : " None" ,
160+ "os" : " Linux" ,
161+ "database_os" : " Linux" ,
162+ "display_name" : " symfony [react]" ,
163+ "notes" : " " ,
164+ "versus" : " php" ,
165+ "tags" : []
166+ },
143167 "franken" : {
144168 "plaintext_url" : " /plaintext" ,
145169 "json_url" : " /json" ,
Original file line number Diff line number Diff line change @@ -17,3 +17,6 @@ opcache.validate_timestamps=0
1717opcache.memory_consumption =256
1818opcache.max_accelerated_files =20000
1919opcache.preload_user =www-data
20+
21+ opcache.jit_buffer_size = 128M
22+ opcache.jit = tracing
Original file line number Diff line number Diff line change 1+ FROM php:8.4-cli
2+
3+ RUN apt-get update -yqq && \
4+ apt-get install -yqq libpq-dev libicu-dev git > /dev/null && \
5+ docker-php-ext-install pdo_pgsql opcache intl pcntl > /dev/null
6+
7+ COPY --link deploy/swoole/php.ini /usr/local/etc/php/
8+ WORKDIR /symfony
9+ COPY --link . .
10+
11+ # We deal with concurrencies over 1k, which stream_select doesn't support.
12+ # libuv
13+ RUN apt-get install -yqq libuv1-dev > /dev/null \
14+ && pecl install uv-beta > /dev/null
15+ RUN docker-php-ext-enable uv
16+
17+ # libevent
18+ # RUN apt-get install -y libevent-dev > /dev/null \
19+ # && pecl install event-3.1.4 > /dev/null
20+ # RUN docker-php-ext-enable event
21+
22+
23+ COPY --from=composer/composer:latest-bin --link /composer /usr/local/bin/composer
24+
25+ # ENV APP_DEBUG 1
26+ ENV APP_ENV prod
27+
28+ # ENV APP_RUNTIME "Runtime\React\Runtime"
29+ # RUN composer require runtime/react --update-no-dev --no-scripts --quiet
30+
31+ ENV APP_RUNTIME "Zolex\R eactPhpBundle\R untime\R eactPhpRuntime"
32+ ENV REACT_HOST "0.0.0.0"
33+ RUN composer require zolex/reactphp-bundle --update-no-dev --no-scripts --quiet
34+ RUN cp deploy/postgresql/.env . && composer dump-env prod && bin/console cache:clear
35+
36+ EXPOSE 8080
37+
38+ ENTRYPOINT [ "php" , "/symfony/public/runtime.php" ]
You can’t perform that action at this time.
0 commit comments