mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
deps: upgrade redis-server.
This commit is contained in:
parent
10b466ba91
commit
715adc13c5
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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 && \
|
||||
|
|
|
|||
Loading…
Reference in New Issue