Skip to content

Latest commit

 

History

History
40 lines (33 loc) · 1.25 KB

File metadata and controls

40 lines (33 loc) · 1.25 KB

embedded-mysql

Maven dependency

pom.xml
<dependency>
    <groupId>com.playtika.testcontainers</groupId>
    <artifactId>embedded-mysql</artifactId>
    <scope>test</scope>
</dependency>

Consumes (via bootstrap.properties)

  • embedded.mysql.enabled (true|false, default is true)

  • embedded.mysql.reuseContainer (true|false, default is false)

  • embedded.mysql.encoding (default is 'utf8mb4')

  • embedded.mysql.collation (default is 'utf8mb4_unicode_ci')

  • embedded.mysql.dockerImage (default is 'mysql:8.0')

  • embedded.mysql.waitTimeoutInSeconds (default is 60 seconds)

  • embedded.mysql.initScriptPath (default is null)

  • embedded.toxiproxy.proxies.mysql.enabled Enables both creation of the container with ToxiProxy TCP proxy and a proxy to the embedded-mysql container.

Produces

  • embedded.mysql.port

  • embedded.mysql.host

  • embedded.mysql.schema

  • embedded.mysql.user

  • embedded.mysql.password

  • embedded.mysql.toxiproxy.host

  • embedded.mysql.toxiproxy.port

  • embedded.mysql.networkAlias

  • embedded.mysql.internalPort

  • Bean ToxiproxyContainer.ContainerProxy mysqlContainerProxy