From f2252f07260fc930617a118bfca4df6e30d66aaf Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Tue, 25 Aug 2015 13:49:36 -0400 Subject: [PATCH] Add a temporary multiplier for the Docker size -> uncompressed size --- endpoints/verbs.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/endpoints/verbs.py b/endpoints/verbs.py index 9254c9d5b..560acbdd6 100644 --- a/endpoints/verbs.py +++ b/endpoints/verbs.py @@ -83,10 +83,14 @@ def _write_synthetic_image_to_storage(verb, linked_storage_uuid, linked_location queue_file.add_exception_handler(handle_exception) + print "Starting write of sythn image" + image_path = store.v1_image_layer_path(linked_storage_uuid) store.stream_write(linked_locations, image_path, queue_file) queue_file.close() + print "Done writing synth image" + if not queue_file.raised_exception: # Setup the database (since this is a new process) and then disconnect immediately # once the operation completes. @@ -162,7 +166,7 @@ def _repo_verb(namespace, repository, tag, verb, formatter, sign=False, checker= derived = model.storage.find_or_create_derived_storage(repo_image.storage, verb, store.preferred_locations[0]) - if not derived.uploading: + if not derived.uploading and False: logger.debug('Derived %s image %s exists in storage', verb, derived.uuid) derived_layer_path = model.storage.get_layer_path(derived) download_url = store.get_direct_download_url(derived.locations, derived_layer_path)