|
|
@ -40,7 +40,8 @@ public class PostgresqlDatabaseContainerProvider implements DatabaseContainerPro |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public GenericContainer<?> getContainer(DolphinSchedulerDatabaseContainer dataSourceContainer) { |
|
|
|
public GenericContainer<?> getContainer(DolphinSchedulerDatabaseContainer dataSourceContainer) { |
|
|
|
// todo: test with multiple pg version
|
|
|
|
// todo: test with multiple pg version
|
|
|
|
GenericContainer<?> postgresqlContainer = new PostgreSQLContainer(DockerImageName.parse("postgres:11.1")) |
|
|
|
GenericContainer<?> postgresqlContainer = |
|
|
|
|
|
|
|
new PostgreSQLContainer(DockerImageName.parse(dataSourceContainer.imageName())) |
|
|
|
.withUsername("root") |
|
|
|
.withUsername("root") |
|
|
|
.withPassword("root") |
|
|
|
.withPassword("root") |
|
|
|
.withDatabaseName("dolphinscheduler") |
|
|
|
.withDatabaseName("dolphinscheduler") |
|
|
|