jonathanagustin commited on
Commit
76a994f
·
verified ·
1 Parent(s): 4055266

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -255,12 +255,14 @@ def build_and_push(
255
  for key, value in build_args.items():
256
  cmd.append(f"--build-arg={key}={value}")
257
 
258
- # Kaniko options - single-snapshot bypasses context file analysis bugs
259
  cmd.extend([
260
  "--cache=false",
261
- "--single-snapshot",
262
  "--ignore-path=/product_uuid",
263
  "--ignore-path=/sys",
 
 
264
  ])
265
 
266
  log(f"Executing: {' '.join(cmd[:5])}...")
@@ -368,12 +370,14 @@ def build_and_push_git(
368
  for key, value in build_args.items():
369
  cmd.append(f"--build-arg={key}={value}")
370
 
371
- # Kaniko options - single-snapshot bypasses context file analysis bugs
372
  cmd.extend([
373
  "--cache=false",
374
- "--single-snapshot",
375
  "--ignore-path=/product_uuid",
376
  "--ignore-path=/sys",
 
 
377
  ])
378
 
379
  log(f"Executing kaniko with git context...")
 
255
  for key, value in build_args.items():
256
  cmd.append(f"--build-arg={key}={value}")
257
 
258
+ # Kaniko options
259
  cmd.extend([
260
  "--cache=false",
261
+ "--reproducible",
262
  "--ignore-path=/product_uuid",
263
  "--ignore-path=/sys",
264
+ "--log-format=text",
265
+ "--verbosity=debug", # Get full error messages
266
  ])
267
 
268
  log(f"Executing: {' '.join(cmd[:5])}...")
 
370
  for key, value in build_args.items():
371
  cmd.append(f"--build-arg={key}={value}")
372
 
373
+ # Kaniko options
374
  cmd.extend([
375
  "--cache=false",
376
+ "--reproducible",
377
  "--ignore-path=/product_uuid",
378
  "--ignore-path=/sys",
379
+ "--log-format=text",
380
+ "--verbosity=debug",
381
  ])
382
 
383
  log(f"Executing kaniko with git context...")