Skip to content

Commit 0cc5258

Browse files
SanneDavideD
authored andcommitted
Switch to use the new faststart containers for Oracle DB
1 parent e9df5b0 commit 0cc5258

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ don't need to create the test databases manually. Just type:
188188

189189
./gradlew test -Pdocker
190190

191+
The above command will start a PostgreSQL instance, which is the default target.
192+
191193
Or:
192194

193195
./gradlew test -Pdocker -Pdb=mysql
@@ -200,6 +202,10 @@ Or:
200202

201203
./gradlew test -Pdocker -Pdb=db2
202204

205+
Or:
206+
207+
./gradlew test -Pdocker -Pdb=oracle
208+
203209
The tests will run faster if you reuse the same containers across
204210
multiple test runs. To do this, edit the testcontainers configuration
205211
file `.testcontainers.properties` in your home directory, adding the

hibernate-reactive-core/src/test/java/org/hibernate/reactive/containers/OracleDatabase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class OracleDatabase implements TestableDatabase {
8282
}
8383
}
8484

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" ) )
8686
.withUsername( DatabaseConfiguration.USERNAME )
8787
.withPassword( DatabaseConfiguration.PASSWORD )
8888
.withDatabaseName( DatabaseConfiguration.DB_NAME )

podman.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,5 +206,5 @@ and schema to run the tests:
206206
[oracle]:https://www.oracle.com/database/technologies/appdev/xe.html
207207

208208
```
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
210210
```

0 commit comments

Comments
 (0)