mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
more fixes
This commit is contained in:
@@ -95,6 +95,24 @@ services:
|
||||
retries: 30
|
||||
start_period: 10s
|
||||
|
||||
mysql_plain_9:
|
||||
image: mysql:9
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: "bun123456@#$%^&*()"
|
||||
MYSQL_DATABASE: bun_sql_test
|
||||
ports:
|
||||
- target: 3306
|
||||
published: 0
|
||||
protocol: tcp
|
||||
tmpfs:
|
||||
- /var/lib/mysql
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
|
||||
interval: 1h # Effectively disable after startup
|
||||
timeout: 5s
|
||||
retries: 30
|
||||
start_period: 10s
|
||||
|
||||
mysql_plain_empty_password:
|
||||
image: mysql:8.4
|
||||
environment:
|
||||
|
||||
@@ -938,7 +938,8 @@ export async function describeWithContainer(
|
||||
"mysql_plain": 3306,
|
||||
"mysql_tls": 3306,
|
||||
"mysql:8": 3306, // Map mysql:8 to mysql_plain
|
||||
"mysql:9": 3306, // Map mysql:9 to mysql_native_password
|
||||
"mysql:9": 3306, // Map mysql:9 to mysql_plain_9
|
||||
"mysql_native_password": 3306, // mysql_native_password
|
||||
"redis_plain": 6379,
|
||||
"redis_unified": 6379,
|
||||
"minio": 9000,
|
||||
@@ -952,8 +953,10 @@ export async function describeWithContainer(
|
||||
if (image === "mysql:8" || image === "mysql:9") {
|
||||
if (env.MYSQL_ALLOW_EMPTY_PASSWORD === "yes") {
|
||||
actualService = "mysql_plain_empty_password"; // No password
|
||||
} else if (image === "mysql:9") {
|
||||
actualService = "mysql_plain_9";
|
||||
} else {
|
||||
actualService = "mysql_plain"; // Default to no password
|
||||
actualService = "mysql_plain";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -24,9 +24,6 @@ if (isDockerEnabled()) {
|
||||
process.arch === "x64" && {
|
||||
name: "MySQL 9",
|
||||
image: "mysql:9",
|
||||
env: {
|
||||
MYSQL_ROOT_PASSWORD: "bun123456@#$%^&*()",
|
||||
},
|
||||
},
|
||||
].filter(Boolean);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user