For development we use virtualenv to have an isolated development when it comes to dependencies.
(对于开发,当涉及到依赖项时,我们使用virtualenv进行隔离开发。)
From this question it seems deploying Python applications in a virtualenv is recommended. (从这个问题来看,似乎建议在virtualenv中部署Python应用程序。)
Now we're starting to use docker for deployment.
(现在,我们开始使用docker进行部署。)
This provides a more isolated environment so I'm questioning the use of virtualenv inside a docker container. (这提供了一个更隔离的环境,因此我质疑docker容器内virtualenv的使用。)
In the case of a single application I do not think virtualenv has a purpose as docker already provides isolation. (对于单个应用程序,我不认为virtualenv有目的,因为docker已经提供了隔离。)
In the case where multiple applications are deployed on a single docker container, I do think virtualenv has a purpose as the applications can have conflicting dependencies. (在将多个应用程序部署在单个docker容器上的情况下,我确实认为virtualenv具有用途,因为这些应用程序可能具有冲突的依赖关系。)
Should virtualenv be used when a single application is deployed in a docker container?
(在Docker容器中部署单个应用程序时应使用virtualenv吗?)
Should docker contain multiple applications or only one application per container?
(docker应该包含多个应用程序还是每个容器仅包含一个应用程序?)
If so, should virtualenv be used when deploying a container with multiple applications?
(如果是这样,那么在部署具有多个应用程序的容器时是否应该使用virtualenv?)
ask by siebz0r translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…