Updated instructions to test on PostgreSQL
This commit is contained in:
parent
2eb2ec50e3
commit
f157dd7915
1 changed files with 2 additions and 15 deletions
|
@ -25,7 +25,7 @@ PostgreSQL
|
|||
|
||||
Use the official [PostgreSQL docker image](https://registry.hub.docker.com/_/postgres/).
|
||||
|
||||
Start MySQL:
|
||||
Start PostgreSQL:
|
||||
|
||||
docker run --name postgres -e POSTGRES_DATABASE=keycloak -e POSTGRES_USER=keycloak -e POSTGRES_PASSWORD=keycloak -e POSTGRES_ROOT_PASSWORD=keycloak -d postgres
|
||||
|
||||
|
@ -33,20 +33,7 @@ Run tests:
|
|||
|
||||
mvn clean install -Dkeycloak.connectionsJpa.url=jdbc:postgresql://`docker inspect --format '{{ .NetworkSettings.IPAddress }}' postgres`:5432/keycloak -Dkeycloak.connectionsJpa.driver=org.postgresql.Driver -Dkeycloak.connectionsJpa.user=keycloak -Dkeycloak.connectionsJpa.password=keycloak
|
||||
|
||||
Stop MySQl:
|
||||
Stop PostgreSQL:
|
||||
|
||||
docker rm -f postgres
|
||||
|
||||
|
||||
Oracle
|
||||
------
|
||||
|
||||
Use the unoffical [Oracle XE 11g image](docker run -d -p 49160:22 -p 49161:1521 -p 49162:8080 alexeiled/docker-oracle-xe-11g).
|
||||
|
||||
Start Oracle XE:
|
||||
|
||||
docker run --name oracle -d alexeiled/docker-oracle-xe-11g
|
||||
|
||||
Run tests:
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue