From 65e750697935765a5173472cd7a8bd403bbbdc2d Mon Sep 17 00:00:00 2001 From: jiaojm <13763605353@163.com> Date: Wed, 19 Nov 2025 20:32:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9C=A8ci=E4=B8=AD=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=8C=82=E8=BD=BD=E7=9A=84=E6=96=B9=E5=BC=8F=EF=BC=8C?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E5=86=99=E5=85=A5root/devstar-data=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E5=AF=BC=E8=87=B4=E5=AE=B9=E5=99=A8=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E5=87=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/devstar-studio-e2e.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.gitea/workflows/devstar-studio-e2e.yaml b/.gitea/workflows/devstar-studio-e2e.yaml index 417622ad5f..12bb79f161 100644 --- a/.gitea/workflows/devstar-studio-e2e.yaml +++ b/.gitea/workflows/devstar-studio-e2e.yaml @@ -21,8 +21,26 @@ jobs: - name: 2. Deploy DevStar Container run: | echo "===== 2. 正在启动容器... =====" + + + # 说明:install.sh 默认使用宿主机路径 (~/devstar_data) 挂载。 + # 在 CI 环境中,这会导致严重的权限问题 (Permission Denied)。 + # 解决方案:动态修改脚本副本,强制将其替换为 Docker 命名卷 (Named Volume)。 + # 这种修改仅在本次 CI 运行中生效,不会影响源码仓库。 + + echo "Patching install.sh to use Docker Volumes instead of Host Paths..." + sed -i 's|~/devstar_data|devstar_data_vol|g' public/assets/install.sh + echo "🔍 Verifying patch:" + grep "docker run" public/assets/install.sh | grep "devstar_data_vol" || echo "::warning:: Patch might have failed!" + + # ------------------------------------------------------- + + # 启动 (此时使用的是修改后的脚本副本) public/assets/install.sh start --image=devstar-studio:latest + echo "===== 容器状态 =====" + docker ps -a + - name: 2.5. Create Report Directory run: | echo "===== 2.5. 正在创建报告目录... ====="