Skip to content
Advertisement

Copy and install packages within tox and set environment variables like you would in a Dockerfile

In my Dockerfile I have this:

JavaScript

Can I do the same in tox? I know you can run commands by specifying in tox.ini as follows:

JavaScript

But I just don’t know if all the commands that would work in a Dockerfile would work in tox as well.

Advertisement

Answer

So I’ve tried it and it worked. To try implement the above, this is what I put in my tox.ini file:

JavaScript

whitelist_externals must be defined if you are gonna have commands like tar, cp, echo, ls etc.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement