-
Notifications
You must be signed in to change notification settings - Fork 255
Expand file tree
/
Copy pathMySQLProperties.java
More file actions
37 lines (31 loc) · 1.14 KB
/
MySQLProperties.java
File metadata and controls
37 lines (31 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.playtika.testcontainer.mysql;
import com.playtika.testcontainer.common.properties.CommonContainerProperties;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.context.properties.ConfigurationProperties;
@Data
@EqualsAndHashCode(callSuper = true)
@ConfigurationProperties("embedded.mysql")
public class MySQLProperties extends CommonContainerProperties {
static final String BEAN_NAME_EMBEDDED_MYSQL = "embeddedMySQL";
static final String BEAN_NAME_EMBEDDED_MYSQL_PACKAGE_PROPERTIES = "mysqlPackageProperties";
String encoding = "utf8mb4";
String collation = "utf8mb4_unicode_ci";
String user = "test";
String password = "test";
String database = "test";
String schema = "test_db";
String host = "localhost";
int port = 3306;
/**
* The SQL file path to execute after the container starts to initialize the database.
*/
String initScriptPath;
// https://hub.docker.com/_/mysql
@Override
public String getDefaultDockerImage() {
// Please don`t remove this comment.
// renovate: datasource=docker
return "mysql:9.5";
}
}