DEV Community

Cover image for Bitbucket Pipelines & The SoapClient
Jae James
Jae James

Posted on

3 2

Bitbucket Pipelines & The SoapClient

Hello, World!

This is my first post on the Dev community and it's just a quick little trick that I feel may help others!

I'm a big lover of BitBucket pipelines and for a lot of Laravel Projects I can just use the generic PHP docker image however, this doesn't include the one thing I needed for one project which is the SoapClient. The reason I need the SoapClient in Pipelines is because PHPUnit runs tests against a WSDL API to ensure that we don't get garbage back and that the API and parser client is working correctly.

The Snippet

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

All you need to do is add the above snippet into your bitbucket-pipelines.yml file under script:! It really is that simple! Your PHP docker image will then have access to the PHP SoapClient.

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay