Sam, I think Mark’s idea is in general stronger than what I will describe, if all you’re after is different aliases. It sounds like you are trying to iterate on two images (Barbican and Nova), presumably changing the source of the former frequently, and don’t
want to build the entire ancestor chain each time.
We are on Train w/ some other Kolla forks so I can’t guarantee that will apply cleanly, but it’s a small change. It involves adding build-args to some Dockerfiles, in your case I suppose barbican-base, but also nova-base. It’s a bit clunky but
gets the job done for us.
/Jason
Hi Sam,
I don't generally do that, and Kolla isn't really set up to make it
easy. You could tag the base containers with the new tag:
docker pull <prefix>-base:wallaby
docker tag <prefix>-base:wallaby <prefix>-base:<git describe output>
Mark
On Thu, 7 Oct 2021 at 03:34, Sam Morrison <
sorrison@gmail.com> wrote:
I’m trying to be able to build a projects container without having to rebuild the parents which have different tags.
The workflow I’m trying to achieve is:
Build base and openstack-base with a tag of wallaby
Build a container image for barbican with a tag of the version of barbican that is returned when doing `git describe`
Build a container image for nova with a tag of the version of barbican that is returned when doing `git describe`
etc.etc.
I don’t seem to be able to do this without having to also build a new base and openstack-base with the same tag which is slow and also means a lot of disk space.
Just wondering how other people do this sort of stuff?
Any ideas?
Thanks,
Sam