docker - Multiservice application in Teamcity - composing branches -


i have large application which

  • is built on top of 3 microservices a, b, c
  • each service has own git repository , build task
  • each build task produces docker image
  • there deploy task depends on every microservice build task
  • deploy task generates docker-compose.yml file template , runs on swarm cluster.

everything works long work on master branches. want have ability create deploy stacks, example:

deploy production:

  • use docker image service built branch master
  • use docker image service b built branch master
  • use docker image service c built branch master

deploy staging:

  • use docker image service built branch release
  • use docker image service b built branch release
  • use docker image service c built branch release

deploy feature:

  • use docker image service built branch release
  • use docker image service b built branch feature/foobar
  • use docker image service c built branch release

how approach case? should use snapshot dependencies or artifact dependencies?


Comments

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

formula - R: how to pass in a reference to the variable in glm or lm? -