python - Does virtualenv serve a purpose (in production) when using docker? -


for development use virtualenv have isolated development when comes dependencies. this question seems deploying python applications in recommended.

now we're starting use deployment. provides more isolated environment i'm questioning use of virtualenv inside docker container. in case of single application not think virtualenv has purpose docker provides isolation. in case multiple applications deployed on single docker container, think virtualenv has purpose applications can have conflicting dependencies.

should virtualenv used when single application deployed in docker container?

should docker contain multiple applications or 1 application per container?

if so, should virtualenv used when deploying container multiple applications?

virtualenv created long before docker. today, lean towards docker instead of virtualenv these reasons:

  • virtualenv still means people consuming product need download eggs. docker, "known work". no strings attached.
  • docker can more virtualenv (like create clean environment when have products need different python versions).

the main drawback docker poor windows support. changed version windows 10.

as "how many apps per container", usual policy 1.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -