thecodingmachine / docker-images-php

A set of PHP Docker images
MIT License
768 stars 137 forks source link

Redis missing from fat image #380

Closed colorninja closed 4 months ago

colorninja commented 5 months ago

Expected Behavior

Redis is not installed in the fat thecodingmachine/php:8.1-v4-apache image

Current Behavior

Redis used to work. Recently a new image tag has been pushed and it is now not present in the image.

Possible Solution

I think a slim image may have been deployed on top of the fat one. I am unsure what has changed since docker hub shows updated 2 days ago but there are no related GitHub commits.

Steps to Reproduce (for bugs)

  1. Run the latest thecodingmachine/php:8.1-v4-apache
  2. Run docker-compose exec [service] php -m

Context

My pipeline started failing because my system does not work when redis is not available.

Your Environment

colorninja commented 5 months ago

My current workaround is to install it by adding the following to my Dockerfile:

USER root
RUN cd /usr/local/lib/thecodingmachine-php/extensions/current/ && ./install_all.sh && ./disable_all.sh
USER docker
mistraloz commented 5 months ago

I confirm the issue. I working on it.

mistraloz commented 5 months ago

As workaround, you can use thecodingmachine/php:8.1.26-v4-apache instead (.26 for the previous patched version, so unsecure on).

mbrodala commented 4 months ago

May be similar to https://github.com/thecodingmachine/docker-images-php/issues/381 even though we can see redis with the specific image.

mistraloz commented 4 months ago

As i said here https://github.com/thecodingmachine/docker-images-php/issues/381#issuecomment-1919428553

I did not understand whats happened. I rebuild without any related changes... and it's working. Maybe a trouble with apt ? I am not sure about that. I hope that will not happens again.

To verify : for V in '7.2' '7.3' '7.4' '8.0' '8.1' '8.2' '8.3'; do for D in 'apache' 'fpm' 'cli' 'apache-node20'; do echo -ne "\nPHP $V ($D) : "; docker run --pull always -q --rm -e "PHP_EXTENSIONS=gd" -ti "docker.io/thecodingmachine/php:$V-v4-$D" php -m | grep -E --color=none "(redis|gd)" | tr -s '\r\n' ' '; done; done;