For each service people and matchmaker setup some database project with database migration file. Run databases via Docker Compose. I suggest to use liquibase. Migrations should be run as a separate executable, as running migrations on service startup leads to problems, when there are multiple instances of this service. Add them to docker compose config.
Steps
[x] Add PostgresDocker Compose pod for each service
[x] Add database module for each service with migration script, setup liquibase
[x] Make GET /monitoring/ping return "pong" from a database
[x] Add PostgresTestContainer for testing run it on test suite setup
[ ] Generate Spring client from OpenAPI (Postponed to #31)
[ ] Do ping in tests using this client (Postponed to #31)
For each service
people
andmatchmaker
setup some database project with database migration file. Run databases via Docker Compose. I suggest to useliquibase
. Migrations should be run as a separate executable, as running migrations on service startup leads to problems, when there are multiple instances of this service. Add them to docker compose config.Steps
Postgres
Docker Compose
pod for each serviceliquibase
GET /monitoring/ping
return "pong" from a databasePostgresTestContainer
for testing run it on test suite setupSpring
client fromOpenAPI
(Postponed to #31)ping
in tests using this client (Postponed to #31)