Repository navigation
Closed
Labels
staleIssues inactives for a while (automatically)
Description
As follow up from #213 , Kudos to #213 (comment)
Expected Behavior
Image should work by just adding redis extension without you need to add igbinary.
Current Behavior
Starting image fails:
$ docker-compose up web
Recreating redis-breaks_web_1 ... done
Attaching to redis-breaks_web_1
web_1 | PHP Warning: PHP Startup: Unable to load dynamic library 'redis.so' (tried: /usr/lib/php/20190902/redis.so (/usr/lib/php/20190902/redis.so: undefined symbol: igbinary_serialize), /usr/lib/php/20190902/redis.so.so (/usr/lib/php/20190902/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
web_1 | /usr/local/bin/docker-entrypoint-as-root.sh: line 129: supercronic: command not found
web_1 | PHP Warning: PHP Startup: Unable to load dynamic library 'redis.so' (tried: /usr/lib/php/20190902/redis.so (/usr/lib/php/20190902/redis.so: undefined symbol: igbinary_serialize), /usr/lib/php/20190902/redis.so.so (/usr/lib/php/20190902/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
web_1 | bash: line 2: syntax error near unexpected token `('
web_1 | bash: line 2: `Warning: PHP Startup: Unable to load dynamic library 'redis.so' (tried: /usr/lib/php/20190902/redis.so (/usr/lib/php/20190902/redis.so: undefined symbol: igbinary_serialize), /usr/lib/php/20190902/redis.so.so (/usr/lib/php/20190902/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0'
redis-breaks_web_1 exited with code 2
Possible Solution
- Somehow autoenable
igbinaryextension afterredisextension is enabled. - add some disclaimer in
Readme.mdthatigbinaryextension is required
Steps to Reproduce (for bugs)
- Make
Dockerfile
# Required default PHP extensions
ARG PHP_EXTENSIONS="redis"
# Image for the development
FROM thecodingmachine/php:7.4-v3-slim-apache- Make
docker-compose.yml
version: '3.4'
services:
web:
build: ./
environment:
TEMPLATE_PHP_INI: "development"
PHP_INI_ERROR_REPORTING: "E_ERROR"
PHP_EXTENSION_XDEBUG: "0"
PHP_INI_XDEBUG__REMOTE_AUTOSTART: "0"
TZ: "Europe/Amsterdam"
APACHE_DOCUMENT_ROOT: "public"
volumes:
- "./:/var/www/html/"docker-compose builddocker-compose up web
Reacted by Fabeni
Metadata
Metadata
Assignees
Labels
staleIssues inactives for a while (automatically)
Activity
stale commentedon Nov 9, 2021
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please update it if any action still required.
stale commentedon Nov 16, 2021
This issue has been automatically closed because it has not had recent activity. Please, reopen if you need.