Skip to content

Commit 5ac7ffc

Browse files
committed
try to workaround an ioctl DB start fail issue
1 parent 7f2a026 commit 5ac7ffc

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

group.nomad

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,17 @@ task "db" {
88
image = "mysql:8.0"
99
ports = ["db"]
1010
volumes = ["/pv/${var.CI_PROJECT_PATH_SLUG}-db:/var/lib/mysql-xxxx"]
11-
tmpfs = ["/tmp", "/run"]
11+
12+
13+
# workaround a nomad orchestration of mysql container issue with mysql container use of
14+
# 'ioctl' for 'autodetection of TTY or not?' on startup
15+
tty = true
16+
# tmpfs = ["/tmp", "/run"]
17+
command = "sh"
18+
args = [
19+
"-c",
20+
"exec /usr/local/bin/docker-entrypoint.sh mysqld --default-authentication-plugin=mysql_native_password"
21+
]
1222
}
1323

1424
# xxx

0 commit comments

Comments
 (0)