Skip to content

Commit 37bc847

Browse files
committed
updating google build
1 parent feda76e commit 37bc847

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

singularity/build/google.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def get_image_path(repo_url, trailing_path):
165165

166166

167167

168-
def run_build(logfile=None):
168+
def run_build(logfile='/tmp/.shub-log'):
169169

170170
'''run_build will generate the Singularity build from a spec_file from a repo_url.
171171
@@ -287,9 +287,10 @@ def run_build(logfile=None):
287287
"metadata": json.dumps(metadata)}
288288

289289
# Did the user specify a specific log file?
290-
logfile = get_build_metadata('logfile')
291-
if logfile is not None:
292-
response['logfile'] = logfile
290+
custom_logfile = get_build_metadata('logfile')
291+
if custom_logfile is not None:
292+
logfile = custom_logfile
293+
response['logfile'] = logfile
293294

294295
# Send final build data to instance
295296
send_build_data(build_dir=build_dir,

0 commit comments

Comments
 (0)