I'm trying to set up Bitbucket Pipelines for a Laravel project, and I'm running into an issue with mcrypt. I'm following the steps exactly as they appear in the documentation here: https://confluence.atlassian.com/bitbucket/laravel-with-bitbucket-pipelines-913473967.html
So here's my pipeline:
pipelines:
default:
- step:
image: php:7-fpm
script:
- apt-get update && apt-get install -qy git curl wget build-essential tcl libmcrypt-dev mysql-client
- yes | pecl install mcrypt-1.0.1
- docker-php-ext-enable mcrypt
- docker-php-ext-install pdo_mysql
- pecl install redis && docker-php-ext-enable redis
- bash ./install-composer.sh
- composer install
- ln -f -s .env.pipelines .env
- php artisan migrate
- php artisan serve &
- sleep 5
- ./vendor/bin/phpunit
- curl -vk http://localhost:8000
services:
- mysql
- step:
image: node
script:
- npm install
- npm run dev
definitions:
services:
mysql:
image: mysql:5.7
environment:
MYSQL_DATABASE: 'homestead'
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
MYSQL_USER: 'homestead'
MYSQL_PASSWORD: 'secret'
It's failing on this step:
yes | pecl install mcrypt-1.0.1
with the following message:
+ yes | pecl install mcrypt-1.0.1
pecl/mcrypt is not compatible with PHP version 7.3.0
No valid packages found
install failed
which doesn't seem to make much sense. I double checked the package page on PECL here: https://pecl.php.net/package/mcrypt/1.0.1 and it says it supports 7.3. I realize I can revert to the 7.2 image, but I'm curious why this doesn't work as the documentation implies.
I'm having the same issue. :(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.