You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# We no longer support build_memory_limit, it must be set in the builder instance
439
+
print("--build-memory-limit is no longer supported", file=sys.stderr)
440
+
print(
441
+
"Check your build engine documentation to set memory limits. Use `docker buildx create` if using the default builder to create a custom builder with appropriate memory limits",
442
+
file=sys.stderr,
443
+
)
444
+
sys.exit(-1)
443
445
444
446
ifargs.environmentandnotr2d.run:
445
447
print("To specify environment variables, you also need to run ""the container")
Total memory that can be used by the docker image building process.
168
+
Unsupported.
169
169
170
-
Set to 0 for no limits.
170
+
When using docker, please use `docker buildx create` to create a new buildkit
171
+
builder with appropriate limits instead.
171
172
""",
172
173
config=True,
173
174
)
174
175
176
+
@observe("build_memory_limit")
177
+
defbuild_memory_limit_changed(self, change):
178
+
print("Setting build_memory_limit is not supported", file=sys.stderr)
179
+
print(
180
+
"Check your build engine documentation to set memory limits. Use `docker buildx create` if using the default builder to create a custom builder with appropriate memory limits",
181
+
file=sys.stderr,
182
+
)
183
+
sys.exit(-1)
184
+
175
185
volumes=Dict(
176
186
{},
177
187
help="""
@@ -856,6 +866,7 @@ def build(self):
856
866
forlinpicked_buildpack.build(
857
867
docker_client,
858
868
self.output_image_spec,
869
+
# This is deprecated, but passing it anyway to not break backwards compatibility
0 commit comments