attempt to update to tox docker 2.0

This commit is contained in:
Asif Saif Uddin 2021-02-01 19:38:38 +06:00
parent fd2e07d794
commit c19693902c
1 changed files with 7 additions and 5 deletions

12
tox.ini
View File

@ -8,7 +8,7 @@ envlist =
apicheck apicheck
pydocstyle pydocstyle
requires = tox-docker requires = tox-docker>=2.0
[testenv] [testenv]
sitepackages = False sitepackages = False
@ -38,14 +38,15 @@ basepython =
install_command = python -m pip --disable-pip-version-check install {opts} {packages} install_command = python -m pip --disable-pip-version-check install {opts} {packages}
docker = docker =
integration-py-amqp: rabbitmq:alpine integration-py-amqp: rabbitmq
integration-redis: redis:alpine integration-redis: redis
dockerenv = dockerenv =
PYAMQP_INTEGRATION_INSTANCE=1 PYAMQP_INTEGRATION_INSTANCE=1
RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS=-rabbit tcp_listeners [5672] RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS=-rabbit tcp_listeners [5672]
[docker:rabbitmq:alpine] [docker:rabbitmq]
image = rabbitmq
ports = 5672:5672/tcp ports = 5672:5672/tcp
healthcheck_cmd = /bin/bash -c 'rabbitmq-diagnostics ping -q' healthcheck_cmd = /bin/bash -c 'rabbitmq-diagnostics ping -q'
healthcheck_interval = 10 healthcheck_interval = 10
@ -53,7 +54,8 @@ healthcheck_timeout = 10
healthcheck_retries = 30 healthcheck_retries = 30
healthcheck_start_period = 5 healthcheck_start_period = 5
[docker:redis:alpine] [docker:redis]
image = redis
ports = 6379:6379/tcp ports = 6379:6379/tcp
healthcheck_cmd = /bin/sh -c 'redis-cli ping' healthcheck_cmd = /bin/sh -c 'redis-cli ping'
healthcheck_interval = 10 healthcheck_interval = 10