Understanding git integration and volumes #252
-
I have my stack files (compose and env) in a private github repo. I'm trying to integrate or at least use Komodo in the best way possible. So in the Komodo container what is the purpose of this volumes?
repo-cache: what kind of files will be stored here? is this a internal cache folder of komodo so I just have to map it to an empty folder? periphery container
/etc/komodo/repos: should I map this to a folder with a git clone of my github? can I integrate Komodo directly with github? /etc/komodo/stacks: If I do the above do I need to use this one? I guess this would be to map the stack files without the need of being a git repo, right? /host/compose: What is the purpose of this? I don't plan to build images, I just have my compose and env files in github |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Komodo Core The The Komodo Periphery Agent Its easier to understand first considering you are running Periphery outside of docker container (eg systemd deployment), so you don't also deal with the container file system separation, re #220. There are two folders, one is The folder can be empty when first starting, and Komodo will clone git repos under the configured By default, Komodo uses Komodo Periphery agent (container) If you must run in container, you need to mount these folders. The current documented compose has a problem with relative mounts working as described in #180, so I have fix to the compose files in the next release. You can find the updated compose files in the new branch for now, they will also work with current 1.16.12 release too: https://github.com/mbecker20/komodo/blob/1.17.0/compose/mongo.compose.yaml#L63 |
Beta Was this translation helpful? Give feedback.
-
Thanks for the detailed response, maybe it would be interesting to add this to the documentation. Another question in the env file
|
Beta Was this translation helpful? Give feedback.
Komodo Core
The
repo-cache
directory is attached to Core container because Core will also clone the repo for the latest commit hash, to provide information on it compared the the actual repo which is cloned on your server. This directory doesn't need to be persisted, in fact it doesn't need to be mounted to at all. But I make default mounted because if you have many repo, it will have to clone them all again when you re-create Komodo Core container on eg version upgrade. While if you mount the repo-cache, Core doesn't have to clone them all again as they are persisted, it can just pull. But nothing will break either, just a bit more efficient to use a persistent mounted cache.The
syncs
d…