I have various Jenkins agents images and I am trying to add automation to it.
I have a base java image called agent-base
and those who inherit from that one e.g. agent-ansible
, agent-terraform
and so on. In some case, I even have a 3rd level.
My questions:
- What would be the best way to update the child images when a parent is updated? Downstream pipelines perhaps?
- Or should I keep all the Dockerfiles in a single repository and have a script that know the images hierarchy?
- More importantly, how should I tag (version) my child images? Should it contain my parents version too? In the tag itself or as labels.