Limit memory usage of the builder #1375
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Hey @vkalach, It doesn't look like it if you're trying to do something like this https://docs.docker.com/build/buildkit/configure/#resource-limiting Perhaps you could create the buildx instance before running Kamal with that setting and then Kamal would just utilize the newly created buildx instance. Here's the line that's creating the buildx context via Kamal https://github.com/basecamp/kamal/blob/main/lib/kamal/commands/builder/local.rb#L3 You can pass build args to when the container is actually built but that's for for your actual container https://kamal-deploy.org/docs/configuration/builders/#build-arguments |
Beta Was this translation helpful? Give feedback.

Hey @vkalach,
It doesn't look like it if you're trying to do something like this https://docs.docker.com/build/buildkit/configure/#resource-limiting
Perhaps you could create the buildx instance before running Kamal with that setting and then Kamal would just utilize the newly created buildx instance.
Here's the line that's creating the buildx context via Kamal https://github.com/basecamp/kamal/blob/main/lib/kamal/commands/builder/local.rb#L3
You can pass build args to when the container is actually built but that's for for your actual container https://kamal-deploy.org/docs/configuration/builders/#build-arguments