davidfowl / Micronetes

Micronetes is a local orchestrator inspired by kubernetes that makes developing and testing microservices and distributed applications easier.
MIT License
773 stars 46 forks source link

Choose branch #21

Closed Fjsmoreira closed 4 years ago

Fjsmoreira commented 4 years ago

First of all, Thank for this @davidfowl ! Such a great thing to have.

Was wondering that maybe a nice addition could be added support to choose the branch that is used and build it.

davidfowl commented 4 years ago

Was wondering that maybe a nice addition could be added support to choose the branch that is used and build it.

Can you clarify? What do you mean what branch to build?

Fjsmoreira commented 4 years ago

A better name for it would be “add git support “ a simple configuration in the yaml file that we could specify that it would start from, for example, the branch “develop” and if the project was currently not in that branch it would not start or give a warning .

davidfowl commented 4 years ago

I'm confused as to what it would do. You specify what project to run. I'm not sure where git support or branch support comes in.

Fjsmoreira commented 4 years ago

It would let you know that the version of the project that I’m running might not be the exact one I’m looking for . In my case I would like it to run the project from my Development/master branch only. Having a warning saying what’s the branch the project currently is could be a nice addition .This would give me a piece of mind that I’m running the right project. Or maybe just a bit overkill ! 🙂

jzabroski commented 4 years ago

I get these types of requests in my project too and I just politely explain that I'm not implementing features of a version control system, and close the issue.

Fernando, just check in the yaml file to source control. Edit it if your branches correspond to environments, such as gold copy data for a previous release being different from current release gold copy due to data structure differences.

Fjsmoreira commented 4 years ago

Fair enough and makes sense! @jzabroski thanks for the tip!