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

Add support to use system environment variable for tox-docker container

letmerecall opened this issue · comments

Is there any way with which I can pass my system's or tox's environment variable (set via setenv or passenv) to tox-docker container?

I want my container to have a environment variable but don't want to track that in git.

You can achieve it through this @letmerecall

[docker:my_service]
image = my-service-image:latest
environment =
    VAR1=aaaaa
    VAR2={env:VAR2}