www-builds mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Seelmann <m...@stefan-seelmann.de>
Subject Re: MS-SQL, mysql, etc
Date Tue, 13 Sep 2016 05:15:14 GMT
On 09/13/2016 02:41 AM, Aristedes Maniatis wrote:
> Do you know of any projects running on Jenkins I can look at that do something similar?

For Apache Directory we currently have two builds [2][3] using Docker,
but there we start the containers from a shell script.

> 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.

I sent you a pull request [4] that adds a new Maven profile which starts
a Postgres Docker container before integration tests and stops it
afterwards. For other DBs it should look similar.

Side note: two tests in cayenne-server fail against Postgres:
DataContextIteratedQueryIT.testPerformIteratedQuery_resolve:207 »
CayenneRuntime
DataContextIteratedQueryIT.testPerformIteratedQuery_CommitWithinIterator:227
» CayenneRuntime

> 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?

No, the Docker image is downloaded on demand and stored/cached locally,
so the next build just reuses the downloaded image.

Kind Regards,
Stefan

[2] https://builds.apache.org/job/dir-fortress-core-docker-test/
[3] https://builds.apache.org/job/dir-apacheds-docker-installers/
[4] https://github.com/apache/cayenne/pull/111


Mime
View raw message