au.net.causal.maven.plugins.boxdb.db.PostgisFactory Maven / Gradle / Ivy
package au.net.causal.maven.plugins.boxdb.db;
public class PostgisFactory extends PostgresFactory
{
static final String POSTGIS_DOCKER_REPOSITORY = "kartoza/postgis";
public PostgisFactory()
{
super("postgis");
}
@Override
protected String getPostgresDockerRepository()
{
return POSTGIS_DOCKER_REPOSITORY;
}
@Override
protected PostgisDatabase createDockerDatabase(BoxConfiguration boxConfiguration, ProjectConfiguration projectConfiguration, BoxContext context)
throws BoxDatabaseException
{
return new PostgisDatabase(boxConfiguration, projectConfiguration, context, dockerRegistry());
}
@Override
protected void initializeDefaults(BoxConfiguration boxConfiguration)
{
if (boxConfiguration.getDatabaseVersion() == null)
boxConfiguration.setDatabaseVersion("11.0-2.5");
super.initializeDefaults(boxConfiguration);
}
}