1

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. Eg: agent-ansible, agent-terraform and so on. In some case, I even have a 3rd level.

I have many unanswered questions in my head so I will just throw them in here.

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.

Thank you

0

It's not good idea to store multiple Dockerfiles inside one repository. The best way is 1 repo 1 Dockerfile.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.