tox-dev / tox-docker

A tox plugin to run one or more Docker containers during tests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow relative path in mounted dirs

d9pouces opened this issue · comments

Currently, the syntax bind:rw:/my/own/datadir:/var/lib/postgresql/data only allows absolute paths for the host path.
It should be easy to accept relative paths (transforming them into absolute paths before the Docker call)

You can use tox substitutions to achieve the same result with greater explicitness, eg https://github.com/tox-dev/tox-docker/blob/master/tox.ini#L61

You're right, thanks for the tip!