On Tue, 30 Apr 2019, Sebastian Wagner wrote:
Out of my head, I could think of two alternatives that
don't require any
new services:
1. Maybe Docker hub could build a nightly image from latest master
https://shaman.ceph.com/api/repos/ceph/master/latest/
using a static Dockerfile using a setup described at
https://docs.docker.com/docker-hub/builds/
This wouldn't give us tests for PRs, though.
2. Or alternatively, Jenkins could build images locally without pushing
them anywhere. (I'm not a big fan of this, as it would require a
temporary private container registry while executing the test.)
3. Make the normal jenkins jobs build a container and push it to docker
hub. Then modify the shaman cleanup task to also remove it. Pushing is
easy, but the cleanup is slightly tricky; see this stackoverflow:
https://stackoverflow.com/questions/44209644/how-do-i-delete-a-docker-imageā¦
For a nightly master build, we don't need to clean up anything, as we
can just replace the existing tag from yesterday (e.g. `latest`). Docker
Hub will eventually remove old referenced images.
I'm suggesting a build for every ceph-ci.git branch, like we do for
packages. In that case it's not a 'latest' at all, right? And we
want to clean them up after ~2 weeks, just like we do with the rpm/dev
repos.
sage