Using containerized services in Bitbucket Pipelines
You can run multiple services in a Bitbucket pipeline by defining containers to use. Once the pipeline runs, these services are scheduled to run in the step they are invoked. Services that can be invoked in this manner include databases, code analytics, and web services.
In this recipe, we’ll look at defining and using containerized services.
Getting ready
There are a few things to understand about the limitations of using services implemented in containers during pipeline executions. Let’s take a close look at them now.
There are a limited number of resources available for these containerized services. Any given step in the pipeline can work with a maximum of five services. If you need to run with a larger number of services, you can define a Docker-in-Docker configuration that allows you to execute additional services through docker run
or docker-compose
.
Each of these services will run without waiting...