I
I
Ivan Vekov2021-12-04 00:39:15
Composer
Ivan Vekov, 2021-12-04 00:39:15

What goes wrong in the Bitbucket pipe when building a Laravel application?

There is an application that works properly on the server. Even after transferring to another server through the banal git clone + composer install - everything is ok.
I tried for the first time in my life to set up a build through Bitbucket pipelines. Must do composer install and pack into container.
Here it packs in a container, but the installer does not work. Gives the following error:

+ composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
- php-amqplib/php-amqplib is locked to version v3.1.0 and an update of this package was not requested.
- php-amqplib/php-amqplib v3.1.0 requires ext-sockets * -> it is missing from your system. Install or enable PHP's sockets extension.
To enable extensions, verify that they are enabled in your .ini files:
- /usr/local/etc/php/php-cli.ini
- /usr/local/etc/php/conf.d/docker-php-ext- sodium.ini
- /usr/local/etc/php/conf.d/docker-php-ext-zip.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.


On a normal server, I think I would correct php.ini or see what is there in general with ext-sockets. And with a cloud solution in the form of a bitbucket - xs what to do. I didn’t see such a problem on the Internet, although it’s strange, no one else uses bitbucket and amqplib? Or am I doing something very wrong

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2021-12-04
@Maksclub

composer install --ignore-platform-reqs
Will deliver, ignoring the extension requirement

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question