containers: export all images in one file 15/7415/6
authorCian Johnston <cian.johnston@est.tech>
Thu, 4 Feb 2021 14:51:58 +0000 (14:51 +0000)
committerCian Johnston <cian.johnston@est.tech>
Tue, 9 Feb 2021 09:46:29 +0000 (09:46 +0000)
commitdbb881e7fd077d2818d01dd6b46d4899af6940d8
treee9102de5f39c117348e8a42bd8eb303e9272e905
parentdf6ea7a608badaa4f78783bc0ac6184ce484e522
containers: export all images in one file

This change modifies how images are exported before packaging.
Previously, each image was exported as a separate file, which
causes duplication of layers in common between images. Now, all
images are exported as one file, allowing deduplication of image
layers and significant on-disk space savings.

NOTE: the docker-registry image is exported separately for the
sake of engine.

Change-Id: I95a0597590ada9c32c8b9449d6f58b321168c2f8
Signed-off-by: Cian Johnston <cian.johnston@est.tech>
playbooks/roles/package/files/pull-images.sh [new file with mode: 0755]
playbooks/roles/package/files/save-images.sh [new file with mode: 0755]
playbooks/roles/package/tasks/containers.yaml
playbooks/roles/prepare-artifacts/tasks/main.yaml