Skip to content

Commit 72bb6f0

Browse files
authored
Merge pull request #69 from brefphp/fpm-dev-fix
2 parents fd84a08 + 94db329 commit 72bb6f0

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

layers/fpm-dev/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ COPY --link --from=bref/local-api-gateway /app /local-api-gateway
3535
EXPOSE 8000
3636

3737
# Add `php/conf.dev.d` to the path where PHP looks for configuration files
38-
ENV PHP_INI_SCAN_DIR="$PHP_INI_SCAN_DIR:/var/task/php/conf.dev.d"
38+
ENV PHP_INI_SCAN_DIR="/opt/bref/etc/php/conf.d:/var/task/php/conf.d:/var/task/php/conf.dev.d"
3939

4040
# Originally the entrypoint is `/lambda-entrypoint.sh` and CMD contains the handler name
4141
# We override the entrypoint to run our own logic

tests/Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ test: test-80 test-81 test-82
55
# This rule matches with a wildcard, for example `test-80`.
66
# The `$*` variable will contained the matched part, in this case `80`.
77
test-%: vendor
8-
docker run --platform=${DOCKER_PLATFORM} --rm -v=$(PWD):/var/task:ro --entrypoint=php bref/${CPU_PREFIX}php-$* \
9-
test_1_binary.php $*
8+
docker run --platform=${DOCKER_PLATFORM} --rm -v=$(PWD):/var/task:ro --entrypoint=php bref/${CPU_PREFIX}php-$* test_1_binary.php $*
9+
docker run --platform=${DOCKER_PLATFORM} --rm -v=$(PWD):/var/task:ro --entrypoint=php bref/${CPU_PREFIX}php-$*-fpm test_1_binary.php $*
10+
docker run --platform=${DOCKER_PLATFORM} --rm -v=$(PWD):/var/task:ro --entrypoint=php bref/${CPU_PREFIX}php-$*-fpm-dev test_1_binary.php $*
1011

11-
docker run --platform=${DOCKER_PLATFORM} --rm -v=$(PWD):/var/task:ro --entrypoint=php bref/${CPU_PREFIX}php-$* \
12-
test_2_extensions.php
12+
docker run --platform=${DOCKER_PLATFORM} --rm -v=$(PWD):/var/task:ro --entrypoint=php bref/${CPU_PREFIX}php-$* test_2_extensions.php
13+
docker run --platform=${DOCKER_PLATFORM} --rm -v=$(PWD):/var/task:ro --entrypoint=php bref/${CPU_PREFIX}php-$*-fpm test_2_extensions.php
14+
docker run --platform=${DOCKER_PLATFORM} --rm -v=$(PWD):/var/task:ro --entrypoint=php bref/${CPU_PREFIX}php-$*-fpm-dev test_2_extensions.php
1315

1416
docker run --platform=${DOCKER_PLATFORM} --rm -v=$(PWD):/var/task:ro --entrypoint=php \
1517
-e PHP_INI_SCAN_DIR="/opt/bref/etc/php/conf.d/:/var/task/" bref/${CPU_PREFIX}php-$* \

tests/test_2_extensions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
'iconv' => function_exists('iconv_strlen'),
9999
'mbstring' => function_exists('mb_strlen'),
100100
'mysqli' => function_exists('mysqli_connect'),
101-
'opcache' => ini_get('opcache.enable') == 1 && ini_get('opcache.enable_cli') == 1,
101+
'opcache' => ini_get('opcache.enable') == 1,
102102
'pdo' => class_exists(\PDO::class),
103103
'pdo_mysql' => extension_loaded('pdo_mysql'),
104104
'pdo_sqlite' => extension_loaded('pdo_sqlite'),

0 commit comments

Comments
 (0)