Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to organize multiple functions under same repo? #79

Open
PrakharSrivastav opened this issue Feb 24, 2022 · 1 comment
Open

How to organize multiple functions under same repo? #79

PrakharSrivastav opened this issue Feb 24, 2022 · 1 comment

Comments

@PrakharSrivastav
Copy link

What is a recommended way to manage multiple functions from code base perspective? My company want to move around 80 functionalities as OCI functions and I am wondering about the best way to organize these projects in a repository. Having 80 different git repos seems like an overkill. Do you have some best practices to organize multiple functions under same repo?

@metamemelord
Copy link
Contributor

Do you still need help with this?

On the OCI Fn side, the best practice is to create an app and then your functions. It is encouraged to scope the functions in apps properly, so if 80 of your features can be categorized in say 5 groups, create 5 apps and then corresponding functions. On the repo side, there is no standard practice, but git submodules can come in handy. Each app can be a submodule - a root dir with each function having its own dir. You should be able to work with a shared library this way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants