File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -17,14 +17,24 @@ class MariaDb extends BaseService
17
17
[
18
18
'shortname ' => 'root_password ' ,
19
19
'prompt ' => 'What will the root password be? ' ,
20
- 'default ' => 'password ' ,
20
+ 'default ' => '' ,
21
21
],
22
22
];
23
23
24
24
protected $ dockerRunTemplate = '-p "${:port}":3306 \
25
25
-e MYSQL_ROOT_PASSWORD="${:root_password}" \
26
+ -e MYSQL_ALLOW_EMPTY_PASSWORD="${:allow_empty_password}" \
26
27
-v "${:volume}":/var/lib/mysql \
27
28
"${:organization}"/"${:image_name}":"${:tag}" ' ;
28
29
29
30
protected static $ displayName = 'MariaDB ' ;
31
+
32
+ protected function buildParameters (): array
33
+ {
34
+ $ parameters = parent ::buildParameters ();
35
+
36
+ $ parameters ["allow_empty_password " ] = $ parameters ["root_password " ] === "" ? "yes " : "no " ;
37
+
38
+ return $ parameters ;
39
+ }
30
40
}
You can’t perform that action at this time.
0 commit comments