Interface ContainerBuilder<C,SELF extends ContainerBuilder<C,SELF>>

All Known Subinterfaces:
ContainerBuilderDb<C,SELF>
All Known Implementing Classes:
ClickHouseContainer.Builder, CockroachContainer.Builder, Db2Container.Builder, ElasticContainer.Builder, HanaContainer.Builder, LocalDynamoDBContainer.Builder, Localstack2Container.Builder, LocalstackContainer.Builder, MariaDBContainer.Builder, MySqlContainer.Builder, NuoDBContainer.Builder, OracleContainer.Builder, PostgisContainer.Builder, PostgresContainer.Builder, RedisContainer.Builder, SqlServerContainer.Builder, YugabyteContainer.Builder

public interface ContainerBuilder<C,SELF extends ContainerBuilder<C,SELF>>
Builder for containers.
  • Method Details

    • build

      C build()
      Build the container.
    • start

      C start()
      Build and start the container.
    • properties

      SELF properties(Properties properties)
      Set configuration from properties.
    • mirror

      SELF mirror(String mirror)
      Set a container mirror for images to use with CI builds.

      For example "my.ecr/mirror".

      The mirror is not used when deemed to be running locally. Typically determined via a ~/.ebean/ignore-docker-shutdown file or alternative marker file set via system property ebean.test.localDevelopment>.

    • containerName

      SELF containerName(String containerName)
      Set the container name to use.
    • port

      SELF port(int port)
      Set the exposed port to use.
    • internalPort

      SELF internalPort(int internalPort)
      Set the internal port to map to.
    • adminPort

      SELF adminPort(int adminPort)
      Set the exposed admin port to use.
    • adminInternalPort

      SELF adminInternalPort(int adminInternalPort)
      Set the internal port mapped to the admin port.
    • image

      SELF image(String image)
      Set the docker image to use.
    • maxReadyAttempts

      SELF maxReadyAttempts(int maxReadyAttempts)
      Set the maximum attempts to check ready status.
    • docker

      SELF docker(String docker)
      Set the docker executable to use. Defaults to docker.
    • startMode

      SELF startMode(StartMode startMode)
      Set the start mode. One of create, dropCreate, or container [only].
    • shutdownMode

      SELF shutdownMode(StopMode shutdownHookMode)
      Set the shutdown hook mode to automatically stop/remove the container on JVM shutdown.