Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mlin committed Oct 19, 2020
1 parent 5c98f5f commit 2351d61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WDL/runtime/task_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -898,10 +898,10 @@ def write_log(stream: Iterable[Dict[str, str]]):
print(msg, file=outfile)

# run docker build
logger.debug(_("Dockerfile", txt=self.runtime_values["inlineDockerfile"]))
try:
with SwarmContainer._build_inline_dockerfile_lock: # one build at a time
logger.info(_("starting docker build", tag=tag))
logger.debug(_("Dockerfile", txt=self.runtime_values["inlineDockerfile"]))
image, build_log = client.images.build(fileobj=BytesIO(dockerfile_utf8), tag=tag)
except docker.errors.BuildError as exn:
# potentially retry, if task has runtime.maxRetries
Expand Down

0 comments on commit 2351d61

Please sign in to comment.