> On Sep 12, 2016, at 5:41 PM, Aristedes Maniatis <[email protected]> wrote:
>
> Do you know of any projects running on Jenkins I can look at that do
> something similar? I've actually never used docker and maven drives me up the
> wall (but not yet quite enough to put the effort into migrating Cayenne to
> gradle). So a bit of copy and paste would help.
FWIW, this is a feature of Apache Yetus, which is a series of tools for
other projects to use to do things like nightly builds (qbt) and patch testing
(test-patch). The Docker features are being used by Hadoop and HBase and maybe
a few others. We have a bundled Dockerfile that can be used as a starting
point. Then as you customize it, you can have Yetus reference your project's
Dockerfile from your source tree.
> I am assuming I'll want to pull the Docker images from somewhere on local
> Apache infrastructure rather than downloading them from the internet for
> every build?
Most of the Apache Yetus builds will build the image the first time on
a given host from the Internet and then use the local cache from there. This
allows one to test the actual Dockerfile as part of the build itself.