I’m having a bit of trouble trying to get my scenario working.
I’ve got integration tests that I want to run but they depend on having a postgres db up and running and that my migrations have been applied to the database.
The trouble is that our migrations are run in docker containers(They are run as init containers in k8s when deployed). So the steps are:
- Start postgres instance
- Apply migrations(docker containers)
- Run integration tests
- Tear down postgres instance
Is there any way to do this in drone without doing some crazy workarounds? I’ve tried running a drone service with postgres but the migration containers can’t access the db via the service name. I’ve also tried mounting the docker socket and I’m getting the same results.