From e0141c89f37103399a456d4d5275e72e30377acc Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 5 Mar 2026 10:06:32 +0800 Subject: [PATCH 1/2] perf: update download bin --- scripts/const.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/const.sh b/scripts/const.sh index ff03ddf..7e2ce11 100644 --- a/scripts/const.sh +++ b/scripts/const.sh @@ -30,14 +30,15 @@ export DOCKER_VERSION=28.5.1 DOCKER_URL="https://download.docker.com/linux/static/stable" DOCKER_MIRROR="https://download.jumpserver.org/docker/docker-ce/linux/static/stable" -if [[ "${DOCKER_IMAGE_MIRROR}" == "1" ]];then +if [[ "${DOCKER_IMAGE_MIRROR}" == "1" && "${DOCKER_BIN_MIRROR}" != "0" ]];then DOCKER_URL=${DOCKER_MIRROR} fi export DOCKER_COMPOSE_VERSION=v2.40.3 COMPOSE_URL="https://github.com/docker/compose/releases/download" COMPOSE_MIRROR="https://download.jumpserver.org/docker/compose/releases/download" -if [[ "${DOCKER_IMAGE_MIRROR}" == "1" ]];then + +if [[ "${DOCKER_IMAGE_MIRROR}" == "1" && "${DOCKER_BIN_MIRROR}" != "0" ]];then COMPOSE_URL=${COMPOSE_MIRROR} fi From 4dc0fa9658b39a1d5f98380dc06434dbb3d74d5f Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 5 Mar 2026 10:15:44 +0800 Subject: [PATCH 2/2] perf: docker bin download use mirror --- scripts/const.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/const.sh b/scripts/const.sh index 7e2ce11..0c769ad 100644 --- a/scripts/const.sh +++ b/scripts/const.sh @@ -30,7 +30,7 @@ export DOCKER_VERSION=28.5.1 DOCKER_URL="https://download.docker.com/linux/static/stable" DOCKER_MIRROR="https://download.jumpserver.org/docker/docker-ce/linux/static/stable" -if [[ "${DOCKER_IMAGE_MIRROR}" == "1" && "${DOCKER_BIN_MIRROR}" != "0" ]];then +if [[ "${DOCKER_IMAGE_MIRROR}" == "1" || "${DOCKER_BIN_MIRROR}" == "1" ]];then DOCKER_URL=${DOCKER_MIRROR} fi @@ -38,7 +38,7 @@ export DOCKER_COMPOSE_VERSION=v2.40.3 COMPOSE_URL="https://github.com/docker/compose/releases/download" COMPOSE_MIRROR="https://download.jumpserver.org/docker/compose/releases/download" -if [[ "${DOCKER_IMAGE_MIRROR}" == "1" && "${DOCKER_BIN_MIRROR}" != "0" ]];then +if [[ "${DOCKER_IMAGE_MIRROR}" == "1" || "${DOCKER_BIN_MIRROR}" == "1" ]];then COMPOSE_URL=${COMPOSE_MIRROR} fi