Skip to content

Commit 99231a4

Browse files
authored
Merge pull request #199 from stellarwp/1.7.2
1.7.2
2 parents 2e7dedd + f126e78 commit 99231a4

File tree

7 files changed

+22
-6
lines changed

7 files changed

+22
-6
lines changed

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
# [1.7.2] - 2024-08-30
8+
* Fixed - Set the `opcache.revalidate_freq` to `0` in the `slic` and `wordpress` containers to avoid issues with cached files in tests.
9+
710
# [1.7.1] - 2024-08-30
811
* Fixed - Run the `playwright install` command as root, allow running Playwright tests as the `slic` user.
912
* Change - The `playwright install` command will now install only the Chromium browser and its dependencies.

containers/slic/Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ RUN apt-get update && apt-get upgrade -yqq && apt-get install -yqq --no-install-
4040
# Configure the uopz extension.
4141
COPY ./docker-php-ext-uopz.ini /usr/local/etc/php/conf.d/docker-php-ext-uopz.ini
4242

43-
# Use our own ini configuration file to set up some PHP default.
44-
COPY ./php.ini /usr/local/etc/php/conf.d/999-slic.ini
45-
4643
# Add the XDebug control scripts.
4744
COPY ./xdebug-on.sh /usr/local/bin/xdebug-on
4845
COPY ./xdebug-off.sh /usr/local/bin/xdebug-off

containers/slic/php.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,11 @@ xdebug.start_with_request=yes
2020
xdebug.mode=develop,debug,coverage
2121
xdebug.discover_client_host=1
2222
xdebug.log_level=0
23+
24+
; Opcache
25+
opcache.revalidate_freq=0
26+
opcache.validate_timestamps=1
27+
opcache.max_accelerated_files=25000
28+
opcache.memory_consumption=128
29+
opcache.interned_strings_buffer=16
30+

containers/wordpress/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ RUN chmod a+x /usr/local/bin/xdebug-on && \
1111
chmod a+x /usr/local/bin/xdebug-off && \
1212
xdebug-off
1313
RUN chmod -R a+rwx /usr/local/etc/php/conf.d
14-
# Use our own ini configuration file to set up some PHP default.
15-
COPY ./php.ini /usr/local/etc/php/conf.d/999-slic.ini
1614

1715
# Install and make wp-cli binary available and executable by all users.
1816
ADD https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar /usr/local/bin/wp

containers/wordpress/php.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,10 @@ xdebug.start_with_request=yes
2020
xdebug.mode=develop,debug,coverage
2121
xdebug.discover_client_host=1
2222
xdebug.log_level=0
23+
24+
; Opcache
25+
opcache.revalidate_freq=0
26+
opcache.validate_timestamps=1
27+
opcache.max_accelerated_files=25000
28+
opcache.memory_consumption=128
29+
opcache.interned_strings_buffer=16

slic-stack.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ services:
108108
- ${SLIC_PLUGINS_DIR}:/var/www/html/wp-content/plugins
109109
- ${SLIC_THEMES_DIR}:/var/www/html/wp-content/themes
110110
- ${COMPOSER_CACHE_DIR:-./.cache}:/composer-cache
111+
- ./containers/wordpress/php.ini:/usr/local/etc/php/conf.d/zz-docker.ini
111112
healthcheck: # Apache service should be running correctly.
112113
test: service apache2 status
113114
start_period: 5s
@@ -197,6 +198,8 @@ services:
197198
- ${COMPOSER_CACHE_DIR:-./.cache}:/composer-cache
198199
# Scripts volume
199200
- ${SLIC_SCRIPTS}:/slic-scripts
201+
# Configurable php.ini volume
202+
- ./containers/slic/php.ini:/usr/local/etc/php/conf.d/zz-docker.ini
200203
extra_hosts:
201204
# Set as host=host.docker.internal in src/slic.php on Linux for XDebug.
202205
- "${host:-host}:host-gateway"

slic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
] );
3535

3636
$cli_name = 'slic';
37-
const CLI_VERSION = '1.7.1';
37+
const CLI_VERSION = '1.7.2';
3838

3939
// If the run-time option `-q`, for "quiet", is specified, then do not print the header.
4040
if ( in_array( '-q', $argv, true ) || ( in_array( 'exec', $argv, true ) && ! in_array( 'help', $argv, true ) ) ) {

0 commit comments

Comments
 (0)