[kolla] skipping base if already exist

Sam Morrison sorrison at gmail.com
Mon Oct 4 22:13:52 UTC 2021



> On 4 Oct 2021, at 6:18 pm, Radosław Piliszek <radoslaw.piliszek at gmail.com> wrote:
> 
> On Mon, 4 Oct 2021 at 07:24, Sam Morrison <sorrison at gmail.com <mailto:sorrison at gmail.com>> wrote:
>> 
>> Hi,
>> 
>> We’ve started to use kolla to build container images and trying to figure out if I’m doing it wrong it it’s just not how kolla works.
>> 
>> What I’m trying to do it not rebuild the base and openstack-base images when we build an image for a project.
>> 
>> Example.
>> 
>> We build a horizon image and it builds and pushes up to our registry the following
>> 
>> kolla/ubuntu-source-base
>> kolla/ubuntu-source-openstack-base
>> kolla/ubuntu-source-horizon
>> 
>> 
>> Now I can rebuild this without having to again build the base images with
>> 
>> —skip parents
>> 
>> 
>> But now I want to build a barbican image and I can’t use skip-parents as the barbican image also requires barbican-base. Which means I need to go and rebuild the ubuntu base and Openstack base images again.
>> 
>> Is there a way to essentially skip parents but only if they don’t exist in the registry already? Or make skip-parents only mean skip base and Openstack-base?
> 
> You might then be interested in --skip-existing

Ha, how did I miss that! Thanks, using that and a combination of pre pulling the base images from the registry before building has got what I wanted.
Thanks,
Sam


> 
> -yoctozepto
> 
>> 
>> Thanks in advance,
>> Sam

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20211005/92a659c3/attachment-0001.htm>


More information about the openstack-discuss mailing list