From c1eda402db4ec9bfdb8004339d552edc0c4362f6 Mon Sep 17 00:00:00 2001 From: Mateusz Wojczal Date: Fri, 10 Jan 2025 11:04:10 +0100 Subject: [PATCH 01/12] php 83 bookwork --- .github/workflows/phpunit-tests.yml | 2 +- .gitignore | 4 +++- Dockerfile | 4 ++-- Dockerfile.develop | 8 +++++--- docker-compose.yml | 2 +- docker/conf/php/escolalms-custom-develop-php.ini | 8 ++++++++ ...-devilbox-default-php.ini => escolalms-custom-php.ini} | 2 +- 7 files changed, 21 insertions(+), 9 deletions(-) create mode 100644 docker/conf/php/escolalms-custom-develop-php.ini rename docker/conf/php/{xxx-devilbox-default-php.ini => escolalms-custom-php.ini} (98%) diff --git a/.github/workflows/phpunit-tests.yml b/.github/workflows/phpunit-tests.yml index 55a55665..c0454096 100644 --- a/.github/workflows/phpunit-tests.yml +++ b/.github/workflows/phpunit-tests.yml @@ -156,7 +156,7 @@ jobs: phpunit-postgres-php83: runs-on: ubuntu-latest container: - image: escolalms/php:8.3-alpine + image: escolalms/php:8.3-bookworm services: postgres: diff --git a/.gitignore b/.gitignore index c545017b..5e9675ad 100644 --- a/.gitignore +++ b/.gitignore @@ -73,4 +73,6 @@ caddy/ docker-compose.saas.yml -inited \ No newline at end of file +inited + +k6 \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 6575b53b..986c1bf8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM escolalms/php:8.3-alpine +FROM escolalms/php:8.3-bookworm WORKDIR /var/www/html EXPOSE 9000 COPY / /var/www/html RUN \ cp docker/conf/supervisor/supervisord.conf /etc/supervisord.conf \ - && cp docker/conf/php/xxx-devilbox-default-php.ini /usr/local/etc/php/conf.d/xxx-devilbox-default-php.ini \ + && cp docker/conf/php/docker/conf/php/escolalms-custom-php.ini /usr/local/etc/php/conf.d/docker/conf/php/escolalms-custom-php.ini \ && cp docker/conf/php/php-fpm-custom.conf /usr/local/etc/php-fpm.d/php-fpm-custom.conf RUN composer install --no-scripts diff --git a/Dockerfile.develop b/Dockerfile.develop index 6575b53b..d274f632 100644 --- a/Dockerfile.develop +++ b/Dockerfile.develop @@ -1,12 +1,14 @@ -FROM escolalms/php:8.3-alpine +FROM escolalms/php:8.3-bookworm WORKDIR /var/www/html EXPOSE 9000 COPY / /var/www/html +RUN pecl install excimer RUN \ cp docker/conf/supervisor/supervisord.conf /etc/supervisord.conf \ - && cp docker/conf/php/xxx-devilbox-default-php.ini /usr/local/etc/php/conf.d/xxx-devilbox-default-php.ini \ + && cp docker/conf/php/docker/conf/php/escolalms-custom-php.ini /usr/local/etc/php/conf.d/docker/conf/php/escolalms-custom-php.ini \ + && cp docker/conf/php/docker/conf/php/escolalms-custom-develop-php.ini /usr/local/etc/php/conf.d/docker/conf/php/escolalms-custom-develop-php.ini \ && cp docker/conf/php/php-fpm-custom.conf /usr/local/etc/php-fpm.d/php-fpm-custom.conf -RUN composer install --no-scripts +RUN composer install --no-scripts --no-dev CMD /var/www/html/init.sh diff --git a/docker-compose.yml b/docker-compose.yml index 45088141..dca2b6e3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,7 +20,7 @@ services: # command: sleep infinity build: context: . - dockerfile: Dockerfile + dockerfile: Dockerfile.develop environment: - LARAVEL_APP_NAME=Wellms - LARAVEL_APP_ENV=local diff --git a/docker/conf/php/escolalms-custom-develop-php.ini b/docker/conf/php/escolalms-custom-develop-php.ini new file mode 100644 index 00000000..4766504f --- /dev/null +++ b/docker/conf/php/escolalms-custom-develop-php.ini @@ -0,0 +1,8 @@ + + + +[PHP] + + + +extension=excimer.so diff --git a/docker/conf/php/xxx-devilbox-default-php.ini b/docker/conf/php/escolalms-custom-php.ini similarity index 98% rename from docker/conf/php/xxx-devilbox-default-php.ini rename to docker/conf/php/escolalms-custom-php.ini index 5a5f6cdb..a9ee6bfd 100644 --- a/docker/conf/php/xxx-devilbox-default-php.ini +++ b/docker/conf/php/escolalms-custom-php.ini @@ -64,4 +64,4 @@ html_errors = On ;xdebug.client_host=10.254.254.254 ;xdebug.discover_client_host=1 -extension=excimer.so +;extension=excimer.so From 867652cefcf4483c76a964955b12c334a8168ea8 Mon Sep 17 00:00:00 2001 From: Mateusz Wojczal Date: Fri, 10 Jan 2025 11:23:05 +0100 Subject: [PATCH 02/12] fixing dockerfile php ini paths --- Dockerfile | 2 +- Dockerfile.develop | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 986c1bf8..c1f762ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ EXPOSE 9000 COPY / /var/www/html RUN \ cp docker/conf/supervisor/supervisord.conf /etc/supervisord.conf \ - && cp docker/conf/php/docker/conf/php/escolalms-custom-php.ini /usr/local/etc/php/conf.d/docker/conf/php/escolalms-custom-php.ini \ + && cp docker/conf/php/docker/conf/php/escolalms-custom-php.ini /usr/local/etc/php/conf.d/escolalms-custom-php.ini \ && cp docker/conf/php/php-fpm-custom.conf /usr/local/etc/php-fpm.d/php-fpm-custom.conf RUN composer install --no-scripts diff --git a/Dockerfile.develop b/Dockerfile.develop index d274f632..42b500c9 100644 --- a/Dockerfile.develop +++ b/Dockerfile.develop @@ -5,8 +5,8 @@ COPY / /var/www/html RUN pecl install excimer RUN \ cp docker/conf/supervisor/supervisord.conf /etc/supervisord.conf \ - && cp docker/conf/php/docker/conf/php/escolalms-custom-php.ini /usr/local/etc/php/conf.d/docker/conf/php/escolalms-custom-php.ini \ - && cp docker/conf/php/docker/conf/php/escolalms-custom-develop-php.ini /usr/local/etc/php/conf.d/docker/conf/php/escolalms-custom-develop-php.ini \ + && cp docker/conf/php/docker/conf/php/escolalms-custom-php.ini /usr/local/etc/php/conf.d/escolalms-custom-php.ini \ + && cp docker/conf/php/docker/conf/php/escolalms-custom-develop-php.ini /usr/local/etc/php/conf.d/escolalms-custom-develop-php.ini \ && cp docker/conf/php/php-fpm-custom.conf /usr/local/etc/php-fpm.d/php-fpm-custom.conf RUN composer install --no-scripts --no-dev From 3c5019725100e8ed3617d696a5139942496b5c09 Mon Sep 17 00:00:00 2001 From: Mateusz Wojczal Date: Fri, 10 Jan 2025 11:25:07 +0100 Subject: [PATCH 03/12] fixing dockerfile php ini paths --- Dockerfile | 2 +- Dockerfile.develop | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c1f762ad..f607ec0a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ EXPOSE 9000 COPY / /var/www/html RUN \ cp docker/conf/supervisor/supervisord.conf /etc/supervisord.conf \ - && cp docker/conf/php/docker/conf/php/escolalms-custom-php.ini /usr/local/etc/php/conf.d/escolalms-custom-php.ini \ + && cp docker/conf/php/escolalms-custom-php.ini /usr/local/etc/php/conf.d/escolalms-custom-php.ini \ && cp docker/conf/php/php-fpm-custom.conf /usr/local/etc/php-fpm.d/php-fpm-custom.conf RUN composer install --no-scripts diff --git a/Dockerfile.develop b/Dockerfile.develop index 42b500c9..c5674642 100644 --- a/Dockerfile.develop +++ b/Dockerfile.develop @@ -5,8 +5,8 @@ COPY / /var/www/html RUN pecl install excimer RUN \ cp docker/conf/supervisor/supervisord.conf /etc/supervisord.conf \ - && cp docker/conf/php/docker/conf/php/escolalms-custom-php.ini /usr/local/etc/php/conf.d/escolalms-custom-php.ini \ - && cp docker/conf/php/docker/conf/php/escolalms-custom-develop-php.ini /usr/local/etc/php/conf.d/escolalms-custom-develop-php.ini \ + && cp docker/conf/php/escolalms-custom-php.ini /usr/local/etc/php/conf.d/escolalms-custom-php.ini \ + && cp docker/conf/php/escolalms-custom-develop-php.ini /usr/local/etc/php/conf.d/escolalms-custom-develop-php.ini \ && cp docker/conf/php/php-fpm-custom.conf /usr/local/etc/php-fpm.d/php-fpm-custom.conf RUN composer install --no-scripts --no-dev From 2feb84f9034575f561f37a8e5486371a5ad579a6 Mon Sep 17 00:00:00 2001 From: Mateusz Wojczal Date: Fri, 10 Jan 2025 11:32:27 +0100 Subject: [PATCH 04/12] fixing dockerfile php ini paths --- Dockerfile | 1 + docker/docker-entrypoint.sh | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100755 docker/docker-entrypoint.sh diff --git a/Dockerfile b/Dockerfile index f607ec0a..c644a17a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,7 @@ FROM escolalms/php:8.3-bookworm WORKDIR /var/www/html EXPOSE 9000 COPY / /var/www/html +COPY docker/docker-entrypoint.sh /docker-entrypoint.sh RUN \ cp docker/conf/supervisor/supervisord.conf /etc/supervisord.conf \ && cp docker/conf/php/escolalms-custom-php.ini /usr/local/etc/php/conf.d/escolalms-custom-php.ini \ diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh new file mode 100755 index 00000000..5a4a69e2 --- /dev/null +++ b/docker/docker-entrypoint.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +set -e +set -u +set -o pipefail + + + +### +### Startup +### +echo "info" "Starting Wellms" +exec "${@}" From 5197ba1df033120e4f7071c6766a1781e42416ea Mon Sep 17 00:00:00 2001 From: Mateusz Wojczal Date: Fri, 10 Jan 2025 11:38:02 +0100 Subject: [PATCH 05/12] fixing dockerfile php ini paths --- .github/workflows/docker-build-develop.yml | 10 ++++++---- Dockerfile.develop | 2 ++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-build-develop.yml b/.github/workflows/docker-build-develop.yml index 552568aa..b29e3ed8 100644 --- a/.github/workflows/docker-build-develop.yml +++ b/.github/workflows/docker-build-develop.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: push: branches: - - 'develop' + - "develop" jobs: build: runs-on: ubuntu-latest @@ -27,7 +27,7 @@ jobs: push: true tags: escolalms/api:${{github.ref_name}} platforms: linux/amd64 - + - name: Create the Mattermost Message run: | echo "{\"text\":\"There is a new [escolalms/api:develop](https://hub.docker.com/r/escolalms/api/tags?page=1&name=develop) image built. k8s rollout will happen soon\"}" > mattermost.json @@ -36,8 +36,10 @@ jobs: MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} PAYLOAD: |- {"text":"There is a new [escolalms/api:develop](https://hub.docker.com/r/escolalms/api/tags?page=1&name=develop) image built. k8s rollout will happen soon"} - - - name: Send webook to hooks to rollout all devs on k8s + + - name: Send webook to hooks to rollout all devs on k8s uses: distributhor/workflow-webhook@v3 + with: + webhook_url: ${{ secrets.K8S_WEBHOOK_URL_API_DEVELOP }} env: webhook_url: ${{ secrets.K8S_WEBHOOK_URL_API_DEVELOP }} diff --git a/Dockerfile.develop b/Dockerfile.develop index c5674642..2d7a2d82 100644 --- a/Dockerfile.develop +++ b/Dockerfile.develop @@ -2,6 +2,8 @@ FROM escolalms/php:8.3-bookworm WORKDIR /var/www/html EXPOSE 9000 COPY / /var/www/html +COPY docker/docker-entrypoint.sh /docker-entrypoint.sh + RUN pecl install excimer RUN \ cp docker/conf/supervisor/supervisord.conf /etc/supervisord.conf \ From adb46a489ed3031db36f5d4de12ecb627ddc7368 Mon Sep 17 00:00:00 2001 From: Mateusz Wojczal Date: Fri, 10 Jan 2025 12:08:50 +0100 Subject: [PATCH 06/12] php 83 bookwork --- .github/workflows/docker-build.yml | 10 ++++------ Dockerfile.develop | 5 +++-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index b7a4591d..e3cb6af3 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -11,7 +11,7 @@ jobs: - name: Set up QEMU uses: docker/setup-qemu-action@v2 with: - platforms: 'arm64,arm' + platforms: "arm64,arm" - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Login to DockerHub @@ -26,7 +26,7 @@ jobs: tags: escolalms/api:${{github.ref_name}}, escolalms/api:latest platforms: linux/amd64,linux/arm64 - name: create release note - run: ./docker/release_note.sh + run: ./docker/release_note.sh - name: Update GitHub Release uses: tubone24/update_release@v1.3.1 env: @@ -35,7 +35,6 @@ jobs: is_append_body: true body_path: ./result.md - - name: Create the Mattermost Message run: | echo "{\"text\":\"There is a new version ${{ github.ref_name }} [escolalms/api:latest](https://hub.docker.com/r/escolalms/api/tags?page=1&name=latest) image built. k8s rollout will happen soon\"}" > mattermost.json @@ -45,8 +44,7 @@ jobs: PAYLOAD: |- {"text":"There is a new version ${{ github.ref_name }} [escolalms/api:latest](https://hub.docker.com/r/escolalms/api/tags?page=1&name=latest) image built. k8s rollout will happen soon"} - - - name: Send webook to hooks to rollout all devs on k8s + - name: Send webook to hooks to rollout all devs on k8s uses: distributhor/workflow-webhook@v3 - env: + with: webhook_url: ${{ secrets.K8S_WEBHOOK_URL_API_LATEST }} diff --git a/Dockerfile.develop b/Dockerfile.develop index 2d7a2d82..c58a5279 100644 --- a/Dockerfile.develop +++ b/Dockerfile.develop @@ -3,8 +3,9 @@ WORKDIR /var/www/html EXPOSE 9000 COPY / /var/www/html COPY docker/docker-entrypoint.sh /docker-entrypoint.sh - -RUN pecl install excimer +RUN docker-php-ext-install opcache +RUN pecl install excimer apcu +RUN docker-php-ext-enable apcu RUN \ cp docker/conf/supervisor/supervisord.conf /etc/supervisord.conf \ && cp docker/conf/php/escolalms-custom-php.ini /usr/local/etc/php/conf.d/escolalms-custom-php.ini \ From 892af3d7bfe05a40d3ec543684f2c383576505f4 Mon Sep 17 00:00:00 2001 From: Mateusz Wojczal Date: Fri, 10 Jan 2025 12:24:21 +0100 Subject: [PATCH 07/12] php 83 develop alpine --- Dockerfile.develop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.develop b/Dockerfile.develop index c58a5279..38a76076 100644 --- a/Dockerfile.develop +++ b/Dockerfile.develop @@ -1,4 +1,4 @@ -FROM escolalms/php:8.3-bookworm +FROM escolalms/php:8.3-alpine WORKDIR /var/www/html EXPOSE 9000 COPY / /var/www/html From 78623459d7b106b652100facf76cfdbc415571ea Mon Sep 17 00:00:00 2001 From: Mateusz Wojczal Date: Fri, 10 Jan 2025 12:36:28 +0100 Subject: [PATCH 08/12] php 83 develop alpine opcache --- .../conf/php/escolalms-custom-develop-php.ini | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docker/conf/php/escolalms-custom-develop-php.ini b/docker/conf/php/escolalms-custom-develop-php.ini index 4766504f..591cee34 100644 --- a/docker/conf/php/escolalms-custom-develop-php.ini +++ b/docker/conf/php/escolalms-custom-develop-php.ini @@ -6,3 +6,22 @@ extension=excimer.so + +output_buffering = 4096 + +realpath_cache_size = 256k +realpath_cache_ttl = 300 + +opcache.jit_buffer_size=100M +opcache.enable=1 + +opcache.fast_shutdown=1 +opcache.file_update_protection=0 +opcache.validate_timestamps=0 +opcache.interned_strings_buffer=16 +opcache.memory_consumption=516 +opcache.max_accelerated_files=4000 +opcache.max_wasted_percentage=5 +opcache.use_cwd=1 +opcache.save_comments=1 +#opcache.enable_cli=1 From 1049ad5aebd16b4622d01e9103b642385173bc7d Mon Sep 17 00:00:00 2001 From: Mateusz Wojczal Date: Fri, 10 Jan 2025 12:48:52 +0100 Subject: [PATCH 09/12] php 83 develop alpine opcache --- docker/conf/php/escolalms-custom-develop-php.ini | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/docker/conf/php/escolalms-custom-develop-php.ini b/docker/conf/php/escolalms-custom-develop-php.ini index 591cee34..df1e8151 100644 --- a/docker/conf/php/escolalms-custom-develop-php.ini +++ b/docker/conf/php/escolalms-custom-develop-php.ini @@ -12,16 +12,19 @@ output_buffering = 4096 realpath_cache_size = 256k realpath_cache_ttl = 300 -opcache.jit_buffer_size=100M +opcache.jit_buffer_size=2560M opcache.enable=1 +opcache.jit=function +opcache.revalidate_freq=0 +opcache.validate_timestamps=1 +opcache.max_accelerated_files=10000 +opcache.max_wasted_percentage=10 +opcache.interned_strings_buffer=16 opcache.fast_shutdown=1 + opcache.file_update_protection=0 -opcache.validate_timestamps=0 -opcache.interned_strings_buffer=16 opcache.memory_consumption=516 -opcache.max_accelerated_files=4000 -opcache.max_wasted_percentage=5 opcache.use_cwd=1 opcache.save_comments=1 #opcache.enable_cli=1 From 4f95df2924bd3407ccfd0d9313d0c4412c1ba2ae Mon Sep 17 00:00:00 2001 From: Mateusz Wojczal Date: Fri, 10 Jan 2025 13:00:02 +0100 Subject: [PATCH 10/12] php 83 develop alpine opcache --- docker/conf/php/escolalms-custom-develop-php.ini | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/conf/php/escolalms-custom-develop-php.ini b/docker/conf/php/escolalms-custom-develop-php.ini index df1e8151..b4d8fc36 100644 --- a/docker/conf/php/escolalms-custom-develop-php.ini +++ b/docker/conf/php/escolalms-custom-develop-php.ini @@ -14,17 +14,17 @@ realpath_cache_ttl = 300 opcache.jit_buffer_size=2560M opcache.enable=1 -opcache.jit=function +opcache.jit=trace opcache.revalidate_freq=0 opcache.validate_timestamps=1 opcache.max_accelerated_files=10000 -opcache.max_wasted_percentage=10 +opcache.max_wasted_percentage=5 opcache.interned_strings_buffer=16 opcache.fast_shutdown=1 opcache.file_update_protection=0 opcache.memory_consumption=516 -opcache.use_cwd=1 -opcache.save_comments=1 +#opcache.use_cwd=1 +#opcache.save_comments=1 #opcache.enable_cli=1 From 41e0d261024fd93ff7b67b8661ec251817a93445 Mon Sep 17 00:00:00 2001 From: Mateusz Wojczal Date: Fri, 10 Jan 2025 13:13:59 +0100 Subject: [PATCH 11/12] php 83 develop alpine opcache --- .../conf/php/escolalms-custom-develop-php.ini | 22 -------- docker/conf/php/escolalms-custom-php.ini | 55 +++++++++++++++++++ 2 files changed, 55 insertions(+), 22 deletions(-) diff --git a/docker/conf/php/escolalms-custom-develop-php.ini b/docker/conf/php/escolalms-custom-develop-php.ini index b4d8fc36..4766504f 100644 --- a/docker/conf/php/escolalms-custom-develop-php.ini +++ b/docker/conf/php/escolalms-custom-develop-php.ini @@ -6,25 +6,3 @@ extension=excimer.so - -output_buffering = 4096 - -realpath_cache_size = 256k -realpath_cache_ttl = 300 - -opcache.jit_buffer_size=2560M -opcache.enable=1 -opcache.jit=trace - -opcache.revalidate_freq=0 -opcache.validate_timestamps=1 -opcache.max_accelerated_files=10000 -opcache.max_wasted_percentage=5 -opcache.interned_strings_buffer=16 -opcache.fast_shutdown=1 - -opcache.file_update_protection=0 -opcache.memory_consumption=516 -#opcache.use_cwd=1 -#opcache.save_comments=1 -#opcache.enable_cli=1 diff --git a/docker/conf/php/escolalms-custom-php.ini b/docker/conf/php/escolalms-custom-php.ini index a9ee6bfd..7b07bfe7 100644 --- a/docker/conf/php/escolalms-custom-php.ini +++ b/docker/conf/php/escolalms-custom-php.ini @@ -42,6 +42,61 @@ log_errors = On html_errors = On + +output_buffering = 0 + +realpath_cache_size = 256k +realpath_cache_ttl = 120 + +opcache.consistency_checks=0 +opcache.dups_fix=Off +opcache.enable=On +opcache.enable_cli=Off +opcache.enable_file_override=Off +opcache.file_cache_consistency_checks=On +opcache.file_cache_only=Off +opcache.file_update_protection=2 +opcache.force_restart_timeout=180 +opcache.huge_code_pages=Off +opcache.interned_strings_buffer=8 +opcache.jit=tracing=tracing +opcache.jit_bisect_limit=0 +opcache.jit_blacklist_root_trace=16 +opcache.jit_blacklist_side_trace=8 +opcache.jit_buffer_size=0 +opcache.jit_debug=0 +opcache.jit_hot_func=127=127 +opcache.jit_hot_loop=64=64 +opcache.jit_hot_return=8 +opcache.jit_hot_side_exit=8 +opcache.jit_max_exit_counters=8192 +opcache.jit_max_loop_unrolls=8 +opcache.jit_max_polymorphic_calls=2 +opcache.jit_max_recursive_calls=2 +opcache.jit_max_recursive_returns=2 +opcache.jit_max_root_traces=1024 +opcache.jit_max_side_traces=128 +opcache.jit_prof_threshold=0.005=0.005 +opcache.lockfile_path=/tmp=/tmp +opcache.log_verbosity_level=1=1 +opcache.max_accelerated_files=10000=10000 +opcache.max_file_size=0 +opcache.max_wasted_percentage=5=5 +opcache.memory_consumption=128 +opcache.opt_debug_level=0 +opcache.optimization_level=0x7FFEBFFF + +opcache.protect_memory=Off +opcache.record_warnings=Off +opcache.revalidate_freq=2 +opcache.revalidate_path=Off +opcache.save_comments=On +opcache.use_cwd=On +opcache.validate_permission=Off +opcache.validate_root=Off +opcache.validate_timestamps=On + + ; Xdebug settings ; uncomment below ; MacOS add host with `sudo ifconfig lo0 alias 10.254.254.254` From 7e6b940777d7fe7ed0c19c68f07b71614c52cdc4 Mon Sep 17 00:00:00 2001 From: Mateusz Wojczal Date: Fri, 10 Jan 2025 13:30:46 +0100 Subject: [PATCH 12/12] docker update alpine 8.3 --- Dockerfile | 5 ++--- Dockerfile.develop | 5 +---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index c644a17a..00024955 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,12 @@ -FROM escolalms/php:8.3-bookworm +FROM escolalms/php:8.3-alpine WORKDIR /var/www/html EXPOSE 9000 COPY / /var/www/html -COPY docker/docker-entrypoint.sh /docker-entrypoint.sh RUN \ cp docker/conf/supervisor/supervisord.conf /etc/supervisord.conf \ && cp docker/conf/php/escolalms-custom-php.ini /usr/local/etc/php/conf.d/escolalms-custom-php.ini \ && cp docker/conf/php/php-fpm-custom.conf /usr/local/etc/php-fpm.d/php-fpm-custom.conf -RUN composer install --no-scripts +RUN composer install --no-scripts --no-dev CMD /var/www/html/init.sh diff --git a/Dockerfile.develop b/Dockerfile.develop index 38a76076..9c584acc 100644 --- a/Dockerfile.develop +++ b/Dockerfile.develop @@ -2,10 +2,7 @@ FROM escolalms/php:8.3-alpine WORKDIR /var/www/html EXPOSE 9000 COPY / /var/www/html -COPY docker/docker-entrypoint.sh /docker-entrypoint.sh -RUN docker-php-ext-install opcache -RUN pecl install excimer apcu -RUN docker-php-ext-enable apcu +RUN pecl install excimer RUN \ cp docker/conf/supervisor/supervisord.conf /etc/supervisord.conf \ && cp docker/conf/php/escolalms-custom-php.ini /usr/local/etc/php/conf.d/escolalms-custom-php.ini \