Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' into pl/dev_packages
Browse files Browse the repository at this point in the history
  • Loading branch information
laitoch committed Jan 14, 2020
2 parents 14ab2b9 + a24479c commit cef7100
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lambdipy/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = 'v0.1.0'
__version__ = 'v0.1.1'
17 changes: 9 additions & 8 deletions lambdipy/project_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,15 @@ def _run_command_in_docker(command, build_directory, python_version):
)
cli.start(container=container.get('Id'))

command_exec = cli.exec_create(container=container.get('Id'), cmd=command)
command_runtime = cli.exec_start(exec_id=command_exec.get('Id'), stream=True)

for line in command_runtime:
print(line.decode('utf-8'), end='')

cli.kill(container.get('Id'))
cli.remove_container(container.get('Id'))
try:
command_exec = cli.exec_create(container=container.get('Id'), cmd=command)
command_runtime = cli.exec_start(exec_id=command_exec.get('Id'), stream=True)

for line in command_runtime:
print(line.decode('utf-8'), end='')
finally:
cli.kill(container.get('Id'))
cli.remove_container(container.get('Id'))


def install_non_resolved_requirements(resolved_requirements, requirements, python_version, keep_tests=None, no_docker=False,
Expand Down

0 comments on commit cef7100

Please sign in to comment.