@ -24,7 +24,7 @@ import org.springframework.core.env.Environment;
import org.springframework.jdbc.core.JdbcTemplate ;
import org.springframework.jdbc.core.JdbcTemplate ;
import org.springframework.jdbc.datasource.DriverManagerDataSource ;
import org.springframework.jdbc.datasource.DriverManagerDataSource ;
import org.springframework.jdbc.datasource.init.ResourceDatabasePopulator ;
import org.springframework.jdbc.datasource.init.ResourceDatabasePopulator ;
import org.testcontainers.containers .OracleContainer ;
import org.testcontainers.oracle .OracleContainer ;
import org.testcontainers.utility.DockerImageName ;
import org.testcontainers.utility.DockerImageName ;
/ * *
/ * *
@ -55,10 +55,9 @@ public class OracleDataSourceConfiguration extends DataSourceConfiguration {
if ( ORACLE_CONTAINER = = null ) {
if ( ORACLE_CONTAINER = = null ) {
LOG . info ( "Oracle starting..." ) ;
LOG . info ( "Oracle starting..." ) ;
DockerImageName dockerImageName = DockerImageName . parse ( "gvenzl/oracle-free:23-slim" )
DockerImageName dockerImageName = DockerImageName . parse ( "gvenzl/oracle-free:23.3-slim" ) ;
. asCompatibleSubstituteFor ( "gvenzl/oracle-xe" ) ;
OracleContainer container = new OracleContainer ( dockerImageName ) //
OracleContainer container = new OracleContainer ( dockerImageName )
. withStartupTimeoutSeconds ( 200 ) //
. withDatabaseName ( "freepdb2" )
. withReuse ( true ) ;
. withReuse ( true ) ;
container . start ( ) ;
container . start ( ) ;
LOG . info ( "Oracle started" ) ;
LOG . info ( "Oracle started" ) ;