From 9c457eb599b52da358e753e830436faaf41a231d Mon Sep 17 00:00:00 2001 From: logan Date: Mon, 1 Jun 2026 01:55:29 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20Dockerfile=20gh-ost=20=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E6=9B=B4=E6=96=B0=20v1.1.9=EF=BC=88macOS=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E9=AA=8C=E8=AF=81=E9=80=9A=E8=BF=87=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - gh-ost v1.1.9 真实执行验证通过(macOS arm64 + 远程MySQL) - ALTER TABLE ADD COLUMN → gh-ost OK (6行表,~8秒完成) - ALTER TABLE ADD INDEX → gh-ost OK - ghost_enabled 默认 false,本地开发: ~/bin/gh-ost --- backend/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 80f1440..0bf5c1a 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -9,8 +9,8 @@ RUN CGO_ENABLED=1 GOOS=linux go build -o opsxsql ./cmd/server/ FROM debian:bookworm-slim RUN apt-get update && apt-get install -y ca-certificates sqlite3 curl && apt-get clean && rm -rf /var/lib/apt/lists/* # Install gh-ost for online DDL -RUN GH_OST_VERSION=1.1.6 && \ - curl -fsSL "https://github.com/github/gh-ost/releases/download/v${GH_OST_VERSION}/gh-ost_${GH_OST_VERSION}_linux_amd64.tar.gz" \ +RUN GH_OST_VERSION=1.1.9 && \ + curl -fsSL "https://github.com/github/gh-ost/releases/download/v${GH_OST_VERSION}/gh-ost-binary-linux-amd64-*.tar.gz" \ | tar xz -C /usr/local/bin gh-ost && chmod +x /usr/local/bin/gh-ost WORKDIR /app COPY --from=build /app/opsxsql .