Changes to dockerfiles/* should trigger a build of all the containers.
Description
Details
| Subject | Author | Repo | Branch | Lines +/- | |
|---|---|---|---|---|---|
| Build docker images on post merge | Hashar | integration/config | master | +22 -0 | |
| contint: include python3 on CI masters | Hashar | operations/puppet | production | +4 -0 |
Related Objects
Event Timeline
Change 385213 had a related patch set uploaded (by Hashar; owner: Hashar):
[integration/config@master] Build docker images on post merge
Change 385210 had a related patch set uploaded (by Hashar; owner: Hashar):
[operations/puppet@production] contint: include python3 on CI masters
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
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.
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.
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.