Skip to content

Commit

Permalink
Don't display unwanted trace
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Nov 6, 2017
1 parent 549cee9 commit a970bfa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion docker-compose-run
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ os.environ["RUN"] = urllib.parse.quote(json.dumps(sys.argv[1:]))
if os.path.exists(".SUCCESS"):
os.remove(".SUCCESS")

subprocess.check_call(["docker-compose", "up", "--abort-on-container-exit"])
try:
subprocess.check_call(["docker-compose", "up", "--abort-on-container-exit"])
except subprocess.CalledProcessError:
exit(2)

if os.path.exists(".SUCCESS"):
os.remove(".SUCCESS")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ os.environ["RUN"] = urllib.parse.quote(json.dumps(sys.argv[1:]))
if os.path.exists(".SUCCESS"):
os.remove(".SUCCESS")

subprocess.check_call([
"docker-compose", "--file", "docker-compose-build.yaml", "up", "--abort-on-container-exit"
])
try:
subprocess.check_call([
"docker-compose", "--file", "docker-compose-build.yaml", "up", "--abort-on-container-exit"
])
except subprocess.CalledProcessError:
exit(2)

if os.path.exists(".SUCCESS"):
os.remove(".SUCCESS")
Expand Down

0 comments on commit a970bfa

Please sign in to comment.