porcelli / bc-git-integration-push

13 stars 20 forks source link

Restore GitHub repository on creation of container in K8 Pod #8

Open gcalabro-rli opened 3 years ago

gcalabro-rli commented 3 years ago

First off, this has been extremely helpful and works fantastic. My business central repos are being synced into GitHub with no problem.

I have a container image that I run Business Central in a K8 cluster. My question is, how could I restore these repos on container creation in the cluster?

I tried a simple curl to get a tarball from github and extracted the source into the .niogit folder, but since I didn't create the "Space" and the "Project" in the UI... I tried just mocking the folder structure and dumping the github repos into my .git folder doesn't work (bin/.niogit/<space>/<project>.git folder). I assume there's additional persistent backing that happens under the hood. Any ideas here?