Composer Install Ignoring DB Connection

Asked by At

Is there a way to composer install without checking for an active DB connection?

Running composer install --prefer-dist --no-dev --no-ansi --no-interaction --no-progress in a GitLab pipeline to build the vendor/ directory into a docker image in order to deploy to a Kubernetes Cluster. The .env file is created on Kubernetes Pod deployment.

This used to work, but recently I started getting:

In PDOConnection.php line 31:

  SQLSTATE[HY000] [2002] Connection refused  

0 Answers