incalculable-family-77679
12/18/2024, 5:36 PMkafka
and inside kafka I am using a ConfigTemplate
to define multiple Configs, one of them is a build for a container
that references dockerfile: ./kafka.Dockerfile
Inside the kafka folder I have my kafka.Dockerfile
root ->
[kafka] ->
kafka.Dockerfile
garden.yml with ConfigTemplate
garden.yml with RenderTemplate
When I try to use RenderTemplate from the root of the repo, it looks like I have to touch the dockerfile
path now to be relative to the root and must now change dockerfile: ./kafka.Dockerfile
. into dockerfile: ./kafka/kafka.Dockerfile
Looks like it is now taking the relative path with respect to the root and not with respect to where the ConfigTemplate is defined, which is under kafka folder. Is this a bug or am I missing some property in config/render settings?
The problem is compounded when I have RepoB
that is including RepoA
as a source, when I have a garden.yml on the root level of RepoB
referencing the ConfigTemplate in RepoA
it can't find the dockerfile as well, I can see the dockerfile under .garden/sources/project/RepoA/kafka/kafka.Dockerfile
but it can't figure out the correct relative path...
Help 🙂
Thank you.incalculable-family-77679
12/19/2024, 12:59 PMswift-garage-61180
12/20/2024, 12:03 PM${template.path}
variable that gives you the absolute path to the directory containing the ConfigTemplate being rendered. So in your case, you could use dockerfile: ${template.path}/kafka.Dockerfile
.
https://github.com/garden-io/garden/pull/6736
It's still in review, but if it's approved and merged, I think that should address this for you.incalculable-family-77679
12/20/2024, 12:11 PMincalculable-family-77679
12/20/2024, 12:15 PMincalculable-family-77679
12/20/2024, 12:18 PMbig-spring-14945
12/20/2024, 12:20 PMbig-spring-14945
12/20/2024, 12:22 PMbig-spring-14945
12/20/2024, 12:23 PMbig-spring-14945
12/20/2024, 12:24 PMproject.garden.yml
snippet or a zip file.
For other users it would be really helpful too if you can also include an outline of your work around in that issue.incalculable-family-77679
12/20/2024, 12:26 PMbig-spring-14945
12/20/2024, 12:29 PMincalculable-family-77679
12/20/2024, 12:32 PMincalculable-family-77679
12/20/2024, 12:32 PMswift-garage-61180
01/16/2025, 12:44 PMswift-garage-61180
01/16/2025, 12:44 PM