Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Laravel, Bitbucket Pipelines, and Mcrypt

Sean Beck
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 11, 2018

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.1pecl/mcrypt is not compatible with PHP version 7.3.0No valid packages foundinstall 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.

1 answer

1 vote
bayareawebpro
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 31, 2018

I'm having the same issue. :(

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events