Easier MariaDB support in tests
This commit is contained in:
1 parent
5abe06a2b7
commit
6a75aec6d8
5 files changed
+30
No files matched your search
@@ -45,4 +45,21 @@ Run tests:
|
||||
Stop PostgreSQL:
|
||||
|
||||
docker rm -f postgres
|
||||
|
||||
MariaDB
|
||||
-------
|
||||
|
||||
The simplest way to test with MariaDB is to use the official [MariaDB docker image](https://registry.hub.docker.com/_/mariadb/).
|
||||
|
||||
Start MariaDB:
|
||||
|
||||
docker run --name mariadb -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=keycloak -e MYSQL_USER=keycloak -e MYSQL_PASSWORD=keycloak -d mariadb:10.1
|
||||
|
||||
Run tests:
|
||||
|
||||
mvn install -Dkeycloak.connectionsJpa.url=jdbc:mariadb://`docker inspect --format '{{ .NetworkSettings.IPAddress }}' mariadb`/keycloak -Dkeycloak.connectionsJpa.driver=org.mariadb.jdbc.Driver -Dkeycloak.connectionsJpa.user=keycloak -Dkeycloak.connectionsJpa.password=keycloak
|
||||
|
||||
Stop MySQl:
|
||||
|
||||
docker rm -f mariadb
|
||||
|
||||
Reference in new issue
Block a user