Page MenuHomePhabricator

build CI images after a merge on integration/config
Closed, DeclinedPublic

Description

Changes to dockerfiles/* should trigger a build of all the containers.

Event Timeline

Change 385213 had a related patch set uploaded (by Hashar; owner: Hashar):
[integration/config@master] Build docker images on post merge

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

Change 385210 had a related patch set uploaded (by Hashar; owner: Hashar):
[operations/puppet@production] contint: include python3 on CI masters

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

I did a basic prototype, it takes a while to build though (50 minutes). So giving up for now.

Change 385210 merged by Giuseppe Lavagetto:
[operations/puppet@production] contint: include python3 on CI masters

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

I did a basic prototype, it takes a while to build though (50 minutes). So giving up for now.

I guess we don't need to build all images on each commit, only images that have changed?

I guess this is also building them synchronously?

We could for now just have a jenkins job that does the build and pushes to the latest tag that we manually trigger or something like that? so that we don't do the builds locally?

Was there a specific image that was slow? IIRC building the R images are very slow since they have to compile a bunch of things.

hashar triaged this task as Unbreak Now! priority.Nov 13 2017, 6:04 PM

The R one due to the compilation.
operations-puppet when doing chown -R nobody /srv/workspace/.cache on labs / docker with overlay FS T178620
The build.py script also build them serially when they could be done in parallel had we had a proper graph of the dependencies.

The idea is to eventually have CI build the container for us and publish them to a registry.

I am not working on this task though, hence why we dropped it from our Kanban.

cloud.docker.com does all of this building, dependency management and caching very nicely.
I wonder if there is something open source we can reuse from that?
Also, there is no need to rebuild them on every commit? only if the DockerFile changes? We should be able to trigger them manually too of course.

greg lowered the priority of this task from Unbreak Now! to Medium.Nov 13 2017, 7:41 PM
greg removed subscribers: TerraCodes, Jay8g, Liuxinyu970226.

Change 385213 abandoned by Hashar:
Build docker images on post merge

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

For now we are rebuilding the images manually. Maybe one day we will look at making the process automatic but meanwhile there is not much gain to have.