nnikolay
nnikolay

Reputation: 1751

Bitbucket pipelines add additional php extensions

I am using the bitbucket pipelines and use the docker image from garak/docker-php7:7.1

Now I need the php-soap extension, which is not in the image above. How can I install it in runtime? Or is there a possibility to put the whole docker configuration in my pipelines config, whitout to pull it from github?

Upvotes: 1

Views: 2471

Answers (1)

Matheus Faustino
Matheus Faustino

Reputation: 11

It's basically like the explain here https://confluence.atlassian.com/bitbucket/php-with-bitbucket-pipelines-873907835.html

You have to use docker-php-ext-install, which is a function from the official docker image for PHP. Check out https://github.com/docker-library/php/issues/315#issuecomment-264645332 , in this link you have all the dependencies to install soap extension.

apt-get install -y libxml2-dev php-soap && apt-get clean -y && docker-php-ext-install soap

Upvotes: 1

Related Questions