File tree 4 files changed +9
-6
lines changed
src/test/java/org/springframework/data/jdbc/testing
src/test/java/org/springframework/data/r2dbc/testing
4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 251
251
252
252
<dependency >
253
253
<groupId >org.testcontainers</groupId >
254
- <artifactId >oracle-xe </artifactId >
254
+ <artifactId >oracle-free </artifactId >
255
255
<scope >test</scope >
256
256
</dependency >
257
257
Original file line number Diff line number Diff line change 24
24
import org .springframework .jdbc .core .JdbcTemplate ;
25
25
import org .springframework .jdbc .datasource .DriverManagerDataSource ;
26
26
import org .springframework .jdbc .datasource .init .ResourceDatabasePopulator ;
27
- import org .testcontainers .containers .OracleContainer ;
27
+ import org .testcontainers .oracle .OracleContainer ;
28
+ import org .testcontainers .utility .DockerImageName ;
28
29
29
30
/**
30
31
* {@link DataSource} setup for Oracle Database XE. Starts a docker container with an Oracle database.
@@ -50,7 +51,9 @@ protected DataSource createDataSource() {
50
51
if (ORACLE_CONTAINER == null ) {
51
52
52
53
LOG .info ("Oracle starting..." );
53
- OracleContainer container = new OracleContainer ("gvenzl/oracle-xe:21.3.0-slim" ).withReuse (true );
54
+ DockerImageName dockerImageName = DockerImageName .parse ("gvenzl/oracle-free:23.3-slim-faststart" );
55
+ OracleContainer container = new OracleContainer (dockerImageName )
56
+ .withReuse (true );
54
57
container .start ();
55
58
LOG .info ("Oracle started" );
56
59
Original file line number Diff line number Diff line change 310
310
311
311
<dependency >
312
312
<groupId >org.testcontainers</groupId >
313
- <artifactId >oracle-xe </artifactId >
313
+ <artifactId >oracle-free </artifactId >
314
314
<scope >test</scope >
315
315
</dependency >
316
316
Original file line number Diff line number Diff line change 29
29
import org .springframework .jdbc .core .JdbcTemplate ;
30
30
import org .springframework .jdbc .datasource .DriverManagerDataSource ;
31
31
import org .springframework .util .ClassUtils ;
32
- import org .testcontainers .containers .OracleContainer ;
32
+ import org .testcontainers .oracle .OracleContainer ;
33
33
34
34
/**
35
35
* Utility class for testing against Oracle.
@@ -128,7 +128,7 @@ private static ExternalDatabase testContainer() {
128
128
if (testContainerDatabase == null ) {
129
129
130
130
try {
131
- OracleContainer container = new OracleContainer ("gvenzl/oracle-xe:21.3.0 -slim" ).withReuse (true );
131
+ OracleContainer container = new OracleContainer ("23.3 -slim-faststart " ).withReuse (true );
132
132
container .start ();
133
133
134
134
testContainerDatabase = ProvidedDatabase .builder (container ) //
You can’t perform that action at this time.
0 commit comments