Is it possible to create a docker container from TFS and deploy a release build to it?

江枫思渺然 提交于 2019-12-05 02:46:34

It is able to create a docker container from TFS and integrate with build/Release pipeline. Some tutorials for this area:

However it's not possible to build a Windows 7 Docker Container. If you plan on doing a full installation of Windows 7, you should use a VM. Docker is not meant to be used in that sense.

For more details please refer this similar question: Build a Windows 7 Container

I am answering in 2019.
We are using TFS 2018 with Docker for Windows.
Our private registry is Linux container from Docker.io.

Our Release Defintion will

  1. Build code on TFS Build Server (e.g. BS01)
  2. Build Docker file on BS01. (i.e. same _work/* folder)
  3. Push the Image to a private registry from BS01.
  4. Run the image from a Docker host (e.g. DH01), which will download from the registry to run it.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!