Skip to content

Commit 244bbfe

Browse files
committed
updating google build
1 parent 1b38684 commit 244bbfe

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

singularity/analysis/apps.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ def extract_apps(image_path, app_names, S=None, verbose=True):
7979
except:
8080
pass
8181
base = '/scif/apps/%s' %app_name
82-
metadata['files'] = [x.path for x in members if base in x.path]
82+
libs = [x.path for x in members if "%s/lib" %base in x.path]
83+
bins = [x.path for x in members if "%s/bin" %base in x.path]
84+
metadata['files'] = libs + bins
8385
apps[app_name] = metadata
8486

8587
return apps

singularity/build/google.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ def finish_build(verbose=True):
338338
file_name=params['logfile'])
339339

340340
# Close up shop
341+
#TODO: need to add more delay here
341342
send_build_close(params=params,
342343
response_url=params['logging_url'])
343344

singularity/build/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,9 @@ def send_build_data(build_dir, data, secret,
238238

239239
if response_url is not None:
240240
finish = requests.post(response_url,data=data, headers=headers)
241+
bot.debug("POST BACK TO SINGULARITY HUB ---------------------")
242+
bot.debug(finish.status_code)
243+
bot.debug(finish.reason)
241244
else:
242245
bot.warning("response_url set to None, skipping sending of build.")
243246

0 commit comments

Comments
 (0)