bright-policeman-43626
01/09/2023, 8:03 PMgarden deploy
is not a feasible option.
Another option that can be used is that for example; imagine we are developing service-a
and this service need some other services to work:
- service-b
- service-c
- frontend
In this case I would run garden deploy
in service-a
folder and that will reuse the other services using repositoryUrl's as modules, this will allow engineers to only deploy in their local computers the related services they are working on.
Is this approach recommended?
Is there any examples of a case like this?
Question 2:
Is there a way to make that garden works using a folder within the code repository?
For example; if we create a folder called garden-config
and store garden.yaml, project.garden.yml, modules.yml, garden.env
in there it would be possible to run garden-deploy from that folder but use the files one level above?
Does garden has a hard requirement to be at the same level of the dockerfile?
Thanks a lot ❤️quaint-dress-831
01/16/2023, 6:28 PMbright-policeman-43626
01/16/2023, 8:15 PMbrief-restaurant-63679
01/18/2023, 1:08 PMsources
field](/Users/eysi/code/garden-io/garden/bin/garden).
You can conceptually have multiple parent projects that pull in different modules as needed.
And we have quite a few plans for better supporting these kind of workflows, but no fixed timeline.
And for the second part:
The Garden config can be "above" the Dockerfile and/or other source files but not "below" it (file hierarchy-wise)".
So this will work:
console
├── api
│ ├── dockerfile
│ └── src
├── api.garden.yml
└── project.garden.yml
But not the other way around.
It's definitely something we'd like to support but will take a bit of effort to implement.bright-policeman-43626
01/19/2023, 9:18 PMservice-a
, I use service-a-project and use sources to require the other microservices as dependencies.
Not sure if that's recommended?brief-restaurant-63679
01/23/2023, 4:21 PMbright-policeman-43626
01/24/2023, 8:05 AMquaint-dress-831
01/25/2023, 1:49 PMbright-policeman-43626
01/25/2023, 3:01 PM