Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Pipelines local PostgreSQL server on agent

I've started using Azure Pipelines, and my django application runs tests which require a local PostgreSQL server.

I'm pretty stumped as I cannot find any information in the MS documentation for how to change the agents configuration to include a local PostgreSQL server.

It seems like a very simple thing to do but I cannot seem to find the relevant documentation. Looking at the agent pool information it lists MySQL as being installed locally.

How can I include a local PostgreSQL server in the configuration of the agent that will build my application and run tests?

like image 567
Chris Berry Avatar asked Feb 25 '26 17:02

Chris Berry


1 Answers

Some options:

  • Create a Docker container with your testing prerequisites in it, and then run your tests in the container
  • Create your own self-hosted agent and install whatever software you need on it, and then use that instead of the Microsoft-hosted agents.
like image 160
Daniel Mann Avatar answered Feb 27 '26 07:02

Daniel Mann