Skip to content

Commit

Permalink
Updated PHP.ini JIT settings for better performance. Extend opcache w…
Browse files Browse the repository at this point in the history
…armup.
  • Loading branch information
SmetDenis committed Apr 9, 2024
1 parent 3fff1df commit 86bddd2
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
COPY ./docker/php.ini /usr/local/etc/php/conf.d/docker-z99-php.ini

# Test and warm up caches
RUN time php /app/docker/build-preloader.php \
&& time php /app/docker/preload.php \
&& echo "Preload is ready!" \
# && echo "opcache.preload=/app/docker/preload.php" >> /usr/local/etc/php/conf.d/docker-z99-php.ini \
&& time /app/csv-blueprint validate:csv -h \
&& time /app/csv-blueprint validate:schema \
--schema=/app/schema-examples/*.yml \
--schema=/app/schema-examples/*.php \
--schema=/app/schema-examples/*.json -vvv \
&& echo "Warm up is ready!" \
&& time php /app/docker/random-csv.php \
# time php /app/docker/build-preloader.php \
# && time php /app/docker/preload.php \
# && echo "opcache.preload=/app/docker/preload.php" >> /usr/local/etc/php/conf.d/docker-z99-php.ini \
# && time /app/csv-blueprint validate:csv -h \
# && time /app/csv-blueprint validate:schema \
# --schema=/app/schema-examples/*.yml \
# --schema=/app/schema-examples/*.php \
# --schema=/app/schema-examples/*.json -vvv \
# && echo "Warm up is ready!" \

RUN time php /app/docker/random-csv.php \
&& time /app/csv-blueprint validate:csv \
--schema=/app/schema-examples/full.yml \
--csv=/app/docker/random_data.csv \
Expand Down

0 comments on commit 86bddd2

Please sign in to comment.