Docker Continuous Integration using TeamCity

Is there a way that I could do CI using TeamCity and Docker? What I have so far is a Dockerfile that would install TeamCity and configure build agent on a base ubuntu image.

What I want is to have TeamCity call a DockerFile on every commit to SVN or GIT. This DockerFile would actually fetch the latest sources from SVN or GIT and run my integration Tests.

  • Unable to connect to server when running docker django container?
  • Upgrade jdk version of Tomcat docker container to 1.8
  • How to start Docker container only after another container is exited
  • Gitlab Runner fails creating android build using the newer yml format
  • SBT Docker ADD file not found
  • Developer environment - how to call/consume other micro services
  • Additionally, how could I manage integration tests against trunk and branch? For example, I have a branch 1.0 and trunk. When I release a branch, I want to run the branch against all the integration tests. Now the integration tests might contain additional tests that actually require a trunk version. How do I handle this? Is there a way using Docker to acheive this?

  • Is there an official Docker Engine security notices mailing list or other channel?
  • docker fails to access a gunicorn served resource in the host
  • How to create a Docker container of an AngularJS app?
  • Configure a remote git in jbpm worbench running in docker
  • Docker fails to start due to “volume store metadata database: timeout”
  • Build failed while appending line in source of docker container
  • One Solution collect form web for “Docker Continuous Integration using TeamCity”

    You didn’t mention what build tool you’re using, but there are plugins for Gradle and maven that let you build images, start containers, and so on. They’ll at least give you the tools to build what you want.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.