parent
1323da20e3
commit
139321de80
1 changed files with 5 additions and 3 deletions
|
@ -19,9 +19,11 @@ class SquashedDockerImage(TarImageFormatter):
|
||||||
command.
|
command.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# TODO(jschorr): Change this multiplier to reflect the 99%-tile of the actual difference between
|
# Multiplier against the image size reported by Docker to account for the TAR metadata.
|
||||||
# the uncompressed image size and the Size reported by Docker.
|
# Note: This multiplier was not formally calculated in anyway and should be adjusted overtime
|
||||||
SIZE_MULTIPLIER = 2
|
# if/when we encounter issues with it. Unfortunately, we cannot make it too large or the Docker
|
||||||
|
# daemon dies when trying to load the entire TAR into memory.
|
||||||
|
SIZE_MULTIPLIER = 1.2
|
||||||
|
|
||||||
def stream_generator(self, namespace, repository, tag, synthetic_image_id,
|
def stream_generator(self, namespace, repository, tag, synthetic_image_id,
|
||||||
layer_json, get_image_iterator, get_layer_iterator, get_image_json):
|
layer_json, get_image_iterator, get_layer_iterator, get_image_json):
|
||||||
|
|
Reference in a new issue