Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
letmerecall opened this issue Feb 11, 2022 · 1 comment

Comments

@letmerecall
Copy link

letmerecall commented Feb 11, 2022

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.

@letmerecall letmerecall changed the title Add support to pass tox or system environment variable to tox-docker container Add support to use system environment variable for tox-docker container Feb 11, 2022
@terrynguyen255
Copy link

terrynguyen255 commented May 24, 2022

You can achieve it through this @letmerecall

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants