- application.properties
- TestContainersMariaDbTestResource.java
Can be only one @QuarkusTestResource(Initializer.class)
, uncomment
quarkus.datasource.url=jdbc:mariadb://localhost:3306/developer
quarkus.datasource.driver=org.mariadb.jdbc.Driver
Run tests
mvn compile test
- application.properties
- TestContainersPostgresqlDbTestResource.java
Can be only one @QuarkusTestResource(Initializer.class)
, uncomment
quarkus.datasource.url=jdbc:postgresql://localhost:5432/developer
quarkus.datasource.driver=org.postgresql.Driver
Run tests
mvn compile test
Run postgresql locally
docker run --ulimit memlock=-1:-1 -it --rm=true --memory-swappiness=0 \
--name postgres-quarkus-db -e POSTGRES_USER=developer \
-e POSTGRES_PASSWORD=developer -e POSTGRES_DB=developer \
-p 5432:5432 postgres:10.5
Run application
mvn quarkus:dev