File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
hibernate-reactive-core/src/test/java/org/hibernate/reactive/containers Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,8 @@ don't need to create the test databases manually. Just type:
188
188
189
189
./gradlew test -Pdocker
190
190
191
+ The above command will start a PostgreSQL instance, which is the default target.
192
+
191
193
Or:
192
194
193
195
./gradlew test -Pdocker -Pdb=mysql
200
202
201
203
./gradlew test -Pdocker -Pdb=db2
202
204
205
+ Or:
206
+
207
+ ./gradlew test -Pdocker -Pdb=oracle
208
+
203
209
The tests will run faster if you reuse the same containers across
204
210
multiple test runs. To do this, edit the testcontainers configuration
205
211
file ` .testcontainers.properties ` in your home directory, adding the
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ class OracleDatabase implements TestableDatabase {
82
82
}
83
83
}
84
84
85
- public static final OracleContainer oracle = new OracleContainer ( imageName ( "gvenzl/oracle-xe" , "21.3.0 -slim" ) )
85
+ public static final OracleContainer oracle = new OracleContainer ( imageName ( "gvenzl/oracle-xe" , "21-slim-faststart " ) )
86
86
.withUsername ( DatabaseConfiguration .USERNAME )
87
87
.withPassword ( DatabaseConfiguration .PASSWORD )
88
88
.withDatabaseName ( DatabaseConfiguration .DB_NAME )
Original file line number Diff line number Diff line change @@ -206,5 +206,5 @@ and schema to run the tests:
206
206
[ oracle ] :https://www.oracle.com/database/technologies/appdev/xe.html
207
207
208
208
```
209
- podman run --rm --name $NAME -e ORACLE_PASSWORD=hreact -e APP_USER=hreact -e APP_USER_PASSWORD=hreact -e ORACLE_DATABASE=hreact -p 1521:1521 gvenzl/oracle-xe:21.3.0 -slim
209
+ podman run --rm --name HibernateTestingOracle -e ORACLE_PASSWORD=hreact -e APP_USER=hreact -e APP_USER_PASSWORD=hreact -e ORACLE_DATABASE=hreact -p 1521:1521 docker.io/ gvenzl/oracle-xe:21-slim-faststart
210
210
```
You can’t perform that action at this time.
0 commit comments