Page MenuHomePhabricator

build script should build dependant containers in order
Closed, ResolvedPublic

Description

For example, php must be built before php-mediawiki and phan. etc

I imagine the dirs that hole the docker files could container some sort of number mapping to the build order so:

  • 0-php
  • 0 zuul-cloner
  • 1-php-mediawiki
  • 1-composer
  • 2-mediawiki-phan

Event Timeline

Change 381761 had a related patch set uploaded (by Legoktm; owner: Hashar):
[integration/config@master] docker: Recursively build images in order

https://gerrit.wikimedia.org/r/381761

Change 381761 merged by jenkins-bot:
[integration/config@master] docker: Recursively build images in order

https://gerrit.wikimedia.org/r/381761

hashar claimed this task.
hashar subscribed.

This is mostly working. Child images can be rebuild by passing --recurse.

Ideally we would want to ensure that parent images are up to date (docker pull / rebuild as needed). For the use case I had in mind that is easier to just rebuild from scratch without any cache.