Closed polaroi8d closed 6 years ago
Hi @polaroi8d can you provide the base image name you're using?
Hello @bweston92 I am always using the latest image from https://hub.docker.com/r/library/php/ with the command of image: php:latest
Ok by looking at the registry php:latest
is php:7.2
, mcrypt is no longer supported in PHP 7.2
Ohhh, I don't know it. What is the last version of php where mcrypt is supported? @bweston92
PHP 7.1 Find out more here: https://wiki.php.net/rfc/mcrypt-viking-funeral
Thanks for the help @bweston92 I am really appreciate for your help
In PHP 7.2 you can install mcrypt via PECL
In PHP 7.2 you can install mcrypt via PECL
And how do you add it in the php.ini or to the image?
Build process completed successfully Installing '/usr/local/lib/php/extensions/no-debug-non-zts-20170718/mcrypt.so' install ok: channel://pecl.php.net/mcrypt-1.0.1 configuration option "php_ini" is not set to php.ini location You should add "extension=mcrypt.so" to php.ini
Because after that you get this
Step 7/9 : RUN docker-php-ext-install mcrypt pdo pdo_mysql zip ---> Running in e789ef243e8b error: /usr/src/php/ext/mcrypt does not exist
Turns out I didn't have to update the php.ini file... I removed mcrypt
from docker-php-ext-install
and just added these lines
RUN pecl install mcrypt-1.0.1
RUN docker-php-ext-enable mcrypt
and it run without giving me an error. I was creating an image to run a Laravel 5.7 application (which I think still needs mcrypt) using the CI of gitlab. The image was created successfully and the tests run well.
Many thanks.
I would like to deploy my project on Gitlab CI with a yaml file. Dumped the following error log when I tried to install php extensions...
I tried to add
apt-get install mcrypt php7.0-mcrypt
but nothing happend. Anyone has a suggestion?