[kolla] skipping base if already exist
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? Thanks in advance, Sam
On Mon, 4 Oct 2021 at 07:24, Sam Morrison <sorrison@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 -yoctozepto
Thanks in advance, Sam
On 4 Oct 2021, at 6:18 pm, Radosław Piliszek <radoslaw.piliszek@gmail.com> wrote:
On Mon, 4 Oct 2021 at 07:24, Sam Morrison <sorrison@gmail.com <mailto:sorrison@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
participants (2)
-
Radosław Piliszek
-
Sam Morrison