From f404b401311ad1d6da5461c9f7d49f3672c3c1b7 Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Tue, 5 Mar 2024 08:48:29 -0600 Subject: [PATCH] Use tox-docker to run services when testing --- tox.ini | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tox.ini b/tox.ini index 73587034..bfe4cd50 100644 --- a/tox.ini +++ b/tox.ini @@ -18,3 +18,23 @@ passenv = PUB_* DB_* MONGODB_CONNSTRING + +docker = + rabbitmq + mongo + +[docker:rabbitmq] +image = rabbitmq:latest + +ports = + 5672:5672/tcp + +[docker:mongo] +image = mongo:7.0.5 + +ports = + 27017:27017/tcp + +environment = + MONGO_INITDB_ROOT_USERNAME=guest + MONGO_INITDB_ROOT_PASSWORD=guest