Closed Saandji closed 8 years ago
Not sure if it will be helpful, but below is working for 5.7:
trait DockerMysqlService extends DockerKit {
def MysqlAdvertisedPort = 3306
val MysqlUser = "root"
val MysqlPassword = "mysecretpassword"
val MysqlDatabase = "db"
val mysqlContainer = DockerContainer("mysql:5.7.14")
.withPorts((MysqlAdvertisedPort, None))
.withEnv(s"MYSQL_USER=$MysqlUser", s"MYSQL_ROOT_PASSWORD=$MysqlPassword", s"MYSQL_DATABASE=$MysqlDatabase")
.withReadyChecker(
DockerReadyChecker
.LogLineContains("MySQL init process done. Ready for start up.")
)
abstract override def dockerContainers: List[DockerContainer] =
mysqlContainer :: super.dockerContainers
}
Closing. Let me know if you are still having and issue with that
I am trying to run mysql:5.6 image with health check, but it always fails. My code:
trait DockerMySqlService extends DockerKit {
}
trait Bootstrapper extends DockerMySqlService { startAllOrFail() }
any ideas?