Skip to content

Commit

Permalink
docker.bzl: Add prints with debug information
Browse files Browse the repository at this point in the history
Signed-off-by: Eryk Szpotanski <[email protected]>
  • Loading branch information
eszpotanski committed Sep 2, 2024
1 parent 2bb24e8 commit f133343
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ def _impl(repository_ctx):
image,
],
)
print("Create STDOUT:", created.stdout)
print("Create STDERR:", created.stderr)
if created.return_code != 0:
fail("Failed to create stopped container: {}".format(created.stderr), created.return_code)
container_id = created.stdout.strip()
Expand All @@ -32,6 +34,8 @@ def _impl(repository_ctx):
".",
],
)
print("Copy STDOUT:", cp.stdout)
print("Copy STDERR:", cp.stderr)
remove = repository_ctx.execute(
[
docker,
Expand Down

0 comments on commit f133343

Please sign in to comment.