From 715adc13c51782c4d2bea36653aaef4d2b18e30f Mon Sep 17 00:00:00 2001 From: liqiang-fit2cloud Date: Thu, 27 Nov 2025 15:41:51 +0800 Subject: [PATCH] deps: upgrade redis-server. --- apps/common/utils/tool_code.py | 2 +- installer/Dockerfile-base | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/common/utils/tool_code.py b/apps/common/utils/tool_code.py index f4fd3d748..9621e59aa 100644 --- a/apps/common/utils/tool_code.py +++ b/apps/common/utils/tool_code.py @@ -254,7 +254,7 @@ exec({dedent(code)!a}) if proc.poll() is None: #如果仍未终止,强制终止 os.killpg(pgid, signal.SIGKILL) proc.wait() - raise Exception(_("Sandbox process execution timeout, consider increasing MAXKB_SANDBOX_PYTHON_PROCESS_TIMEOUT_SECONDS.")) + raise Exception(_("Process execution timed out.")) # 执行超时,到了MAXKB_SANDBOX_PYTHON_PROCESS_TIMEOUT_SECONDS限制 def validate_mcp_transport(self, code_str): servers = json.loads(code_str) diff --git a/installer/Dockerfile-base b/installer/Dockerfile-base index c04a7a6d6..9a48f15d1 100644 --- a/installer/Dockerfile-base +++ b/installer/Dockerfile-base @@ -20,6 +20,8 @@ ARG DEPENDENCIES=" \ RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ echo "Asia/Shanghai" > /etc/timezone && \ + echo "deb http://deb.debian.org/debian testing main" >> /etc/apt/sources.list && \ + echo -e "Package: redis-server\nPin: release a=testing\nPin-Priority: 501" > /etc/apt/preferences.d/redis #注释:用最新版本redis && \ apt-get update && apt-get install -y --no-install-recommends $DEPENDENCIES && \ chmod 755 /usr/bin/start-*.sh && \ find /etc/ -type f ! -path '/etc/resolv.conf' ! -path '/etc/hosts' | xargs chmod g-rx && \