最近,我一直在研究码头及其对SaaS公司的有用性。我花了一些时间学习如何封装应用程序,并简要地了解了什么是停靠者和容器。我在理解这项技术的有用性方面有一些问题。我看过dockercon的一些视频,似乎每个人都在谈论docker如何简化部署,以及在dev环境中部署如何保证在生产中运行。不过,我有一些问题:
发布于 2014-07-14 22:16:13
- Code locally and include the source when you `docker build` by using an `ADD` or `COPY` statement as part of the `Dockerfile`
- Code locally and push your code to a source code repository like GitHub and then have the build process pull the code into the container as part of `docker build`
- Code locally and mount your local source code directory as a shared volume with the container.前两者允许您在生产和开发中具有完全相同的构建过程。最后一个示例不适合于生产,但可以使用ADD语句快速转换为生产(即第一个示例)。
https://stackoverflow.com/questions/24746478
复制相似问题