root/build-tools/build-docker-images/loci/patches
Davlet Panech 4183a924cf docker-images: don't embed wheel tar in images
This patch fixes a problem introduced by [1]: docker image script
embeds the wheels tarball in the docker image via a COPY command; then
deletes it during the build. This makes docker images unnecessarily
large. This lets us use local tar files with the docker image(s) being
built.

Recently [2] a patch was merged that adds a web server to the Debian
build environment, allowing us to access local files over HTTP and
making the COPY step unnecessary in the Docker file.

This patch removes the explicit downloading of the wheels tarball and
the COPY directive, while passing the wheel tarball to Loci as a URL,
allowing Loci to download it during the build w/o contributing to the FS
layer size.

This reduces the size of stx-fm-rest-api image by ~220 MB. Other Loci
images should experience similar savings.

[1] https://review.opendev.org/c/starlingx/root/+/857505
[2] https://review.opendev.org/c/starlingx/tools/+/873010

TESTS
=================

* Build a loci image with wheels tarball passed as a URL
* Build a loci image with wheels tarball passed as a local file name

Story: 2010294
Task: 47343

Change-Id: I6dca6f95b0845e549ad35c9b6e95aa58c86fc774
Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
2023-02-10 15:23:40 -05:00
..
0001-starlingx-enable-disable-package-repos.patch docker-images: don't embed wheel tar in images 2023-02-10 15:23:40 -05:00
0002-Don-t-fail-if-user-group-exists-in-base-image.patch docker-images: add Loci patches 2022-09-14 10:56:06 -04:00
0003-Add-build-argument-to-allow-pip-upgrade.patch docker-images: Add loci patch to allow pip upgrade 2023-01-19 19:34:17 -03:00