Skip to content

Commit

Permalink
Change file output to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
angerson committed Dec 19, 2018
1 parent 2eb720c commit 55cc35c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions tensorflow/tools/dockerfiles/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ $ asm_dockerfiles --release dockerfiles --construct_dockerfiles
# Build all of the "nightly" images on your local machine:
$ asm_images --release nightly --build_images

# Save the list of built images to a file:
$ asm_images --release nightly --build_images > tf-built.txt

# Build version release for version 99.0, except "gpu" tags:
$ asm_images --release versioned --arg _TAG_PREFIX=99.0 --build_images --exclude_tags_matching '.*gpu.*'

Expand Down
14 changes: 7 additions & 7 deletions tensorflow/tools/dockerfiles/assembler.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
- Builds images (and optionally runs image tests)
- Pushes images to Docker Hub (provided with credentials)
Logs are written to stderr; the list of successfully built images is
written to stdout.
Read README.md (in this directory) for instructions!
"""

Expand Down Expand Up @@ -676,13 +679,10 @@ def main(argv):
'errors: {}'.format(','.join(failed_tags)))
exit(1)

if FLAGS.write_tags_to:
eprint('> Writing built{} tags to {}.'.format(
' and tested' if FLAGS.run_tests_path else '',
FLAGS.write_tags_to))
with open(FLAGS.write_tags_to, 'w') as f:
for tag in succeeded_tags:
f.write('{}:{}\n'.format(FLAGS.repository, tag))
eprint('> Writing built{} tags to standard out.'.format(
' and tested' if FLAGS.run_tests_path else ''))
for tag in succeeded_tags:
print('{}:{}'.format(FLAGS.repository, tag))


if __name__ == '__main__':
Expand Down

0 comments on commit 55cc35c

Please sign in to comment.