Commit ef958a5e authored by José Henrique's avatar José Henrique
Browse files

Always throw container exceptions

parent 9651a0df
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
import docker import docker
import os import os
import traceback
import threading import threading
import time import time
...@@ -73,16 +72,10 @@ def start_build(environment_vars): ...@@ -73,16 +72,10 @@ def start_build(environment_vars):
kill_container(container_name) kill_container(container_name)
pull_image(image_name) pull_image(image_name)
print("Starting container: " + container_name) print("Starting container: " + container_name)
try: stream_container_logs(container_name)
stream_container_logs(container_name),, remove=True,
remove=True, name=container_name,
name=container_name, volumes=volumes_to_mount,
volumes=volumes_to_mount, environment=environment_vars)
environment=environment_vars) return True
return True
except docker.errors.ContainerError:
return False
except Exception:
return False
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment