Make MySQL image configurable for CPUs without x86-64-v2

mysql:8.4 (Oracle Linux 9 build) aborts with 'Fatal glibc error: CPU does
not support x86-64-v2' on generic VM CPU types (kvm64/qemu64) and pre-2009
hardware. MYSQL_IMAGE env var (default mysql:8.4) lets such hosts run the
baseline-x86-64 mysql:8.0-debian build instead.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
ang3l12
2026-07-13 13:49:50 -06:00
parent 2c25fabd42
commit 36ee982ca3
3 changed files with 10 additions and 1 deletions

View File

@@ -42,6 +42,11 @@ ENTRA_API_SCOPE=
INITIAL_ADMIN_EMAILS=spencerm@pescoinc.biz
# ── MySQL ───────────────────────────────────────────────────────────────────
# Default image is mysql:8.4, which requires an x86-64-v2 CPU. If the mysql
# container dies with "Fatal glibc error: CPU does not support x86-64-v2"
# (common on VMs with a generic kvm64/qemu64 CPU type, or pre-2009 hardware),
# uncomment the Debian-based build:
#MYSQL_IMAGE=mysql:8.0-debian
MYSQL_HOST=mysql
MYSQL_PORT=3306
MYSQL_DATABASE=pesco_ncr