We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb551eb commit 24eb3f9Copy full SHA for 24eb3f9
repo2docker/__main__.py
@@ -299,7 +299,12 @@ def make_r2d(argv=None):
299
r2d.user_name = args.user_name
300
301
if args.build_memory_limit:
302
- r2d.build_memory_limit = args.build_memory_limit
+ # if the string only contains numerals we assume it should be an int
303
+ # and specifies a size inn bytes
304
+ if args.build_memory_limit.isnumeric():
305
+ r2d.build_memory_limit = int(args.build_memory_limit)
306
+ else:
307
+ r2d.build_memory_limit = args.build_memory_limit
308
309
if args.environment and not r2d.run:
310
print('To specify environment variables, you also need to run '
0 commit comments