Initialize testcontainers postgresql database with flyway
on 2021-03-14
With Testcontainers library, you can use a docker container providing services such as a database for your test. With Flyway library, you can track the schema changes of your database and ensure that those changes are applied on all its instances. How can you initialize your test database provided by Testcontainers with the schema described in Flyway ? In this post, we will see how to initialize a postgresql database in a docker container with Flyway scripts.
#scala #postgresql #testcontainers #flyway
Read more of Initialize testcontainers postgresql database with flyway