Closed BastienM closed 3 years ago
Thanks for the suggestion! Yes, we would like to get Porter using buildkit. There are new discussions about this idea, and related ones, at https://github.com/getporter/porter/discussions/1312.
Thanks for letting me know @carolynvs. I'll monitor the discussion 👍
This has been implemented in the v1 branch. I will work this week to get an alpha build out for people to try.
Is your feature request related to a problem? Please describe. Porter
build
fails when using theterraform
mixin with git-based modules.Using the
--debug
flag clearly shows:Describe the solution you'd like
Quick and dirt solution
Execute
terraform init
beforeporter build
.More elaborated solution
Add a toggle to allow Porter (and mixins) to enable buildkit features on demand, i.e
The mixin would then be instructed to use
--mount=type=ssh
when generating its Dockerfile instructions, i.eDescribe alternatives you've considered Circumvented the build issue by directly create my own Dockerfile. (not tested a 100%)
Here is a Dockerfile sample:
Additional context