boost icon indicating copy to clipboard operation
boost copied to clipboard

Investigate using testcontainers to start databases during integration tests

Open awisniew90 opened this issue 6 years ago • 2 comments

We are currently using the docker-maven-plugin to start containers for db images. This does not work for db2, which does not allow direct pulls from docker hub. The docker-maven-plugin also has issues detecting the start of a mysql image without an explicit timeout. Testcontainers outlined here: https://openliberty.io/blog/2019/03/27/integration-testing-with-testcontainers.html might be a better option.

awisniew90 avatar Apr 15 '19 17:04 awisniew90

Hey @awisniew90, it's great to see you looking into Testcontainers. We'd be happy to provide help if you have any questions regarding migration.

With regards to DB2, we have an open PR for DB2 support which we could finally merge, or you can basically just copy the class into your code base for initial testing: https://github.com/testcontainers/testcontainers-java/pull/860

kiview avatar Apr 15 '19 19:04 kiview

Thanks for the info @kiview ! When we get to this, we'll be sure to send any questions your way.

awisniew90 avatar Apr 15 '19 19:04 awisniew90