4 ms·
The whole git submodule thing is solely a manifest of all the git refs for compliant microservices. Lets just pretend that it is a text file, and call it the se
by supermatt 11y ago
The whole git submodule thing is solely a manifest of all the git refs for compliant microservices. Lets just pretend that it is a text file, and call it the service manifest (why the submodule hate!) :)
The microservices are indeed "deployed" independently, based on the version (ref) as indicated in the service manifest.
> I would have separate repos and deploy scripts and then set the version number of each service to the build number which guarantees traceability and makes it easier for change management.
They have seperate repos, they have seperate "versions" (we use the git ref, which is constant).
As for why I use submodules, this is (in pseudo-bash) what a service deployment looks like:
git pull
git submodule update SERVICE_NAME
cd SERVICE_NAME
./start.sh