mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-26 18:09:37 +00:00
perf: change download path
This commit is contained in:
parent
8df0d6f4a4
commit
dca438fe18
@ -52,10 +52,10 @@ RUN --mount=type=cache,target=/root/.cache \
|
|||||||
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
|
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
|
||||||
--mount=type=bind,source=requirements/clean_site_packages.sh,target=clean_site_packages.sh \
|
--mount=type=bind,source=requirements/clean_site_packages.sh,target=clean_site_packages.sh \
|
||||||
--mount=type=bind,source=requirements/collections.yml,target=collections.yml \
|
--mount=type=bind,source=requirements/collections.yml,target=collections.yml \
|
||||||
--mount=type=bind,source=requirements/static_files.sh,target=static_files.sh \
|
--mount=type=bind,source=requirements/static_files.sh,target=utils/static_files.sh \
|
||||||
set -ex \
|
set -ex \
|
||||||
&& uv venv \
|
&& uv venv \
|
||||||
&& uv pip install -i${PIP_MIRROR} -r pyproject.toml \
|
&& uv pip install -i${PIP_MIRROR} -r pyproject.toml \
|
||||||
&& ln -sf $(pwd)/.venv /opt/py3 \
|
&& ln -sf $(pwd)/.venv /opt/py3 \
|
||||||
&& bash static_files.sh \
|
&& bash utils/static_files.sh \
|
||||||
&& bash clean_site_packages.sh
|
&& bash clean_site_packages.sh
|
||||||
|
@ -2,14 +2,19 @@
|
|||||||
|
|
||||||
CURRENT_DIR=$(cd "$(dirname "$0")" && pwd)
|
CURRENT_DIR=$(cd "$(dirname "$0")" && pwd)
|
||||||
BASE_DIR=$(dirname "$CURRENT_DIR")
|
BASE_DIR=$(dirname "$CURRENT_DIR")
|
||||||
|
|
||||||
VERSION=v0.0.1
|
VERSION=v0.0.1
|
||||||
|
|
||||||
to_files="
|
to_files="
|
||||||
apps/common/utils/ip/geoip/GeoLite2-City.mmdb
|
apps/common/utils/ip/geoip/GeoLite2-City.mmdb
|
||||||
apps/common/utils/ip/ipip/ipipfree.ipdb
|
apps/common/utils/ip/ipip/ipipfree.ipdb
|
||||||
apps/accounts/automations/check_account/leak_passwords.db
|
apps/accounts/automations/check_account/leak_passwords.db
|
||||||
"
|
"
|
||||||
|
|
||||||
|
if [[ $1 == "root" ]];then
|
||||||
|
BASE_DIR="${BASE_DIR}/jumpserver"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
for file in $to_files; do
|
for file in $to_files; do
|
||||||
# Check if the file already exists
|
# Check if the file already exists
|
||||||
file_path="${BASE_DIR}/$file"
|
file_path="${BASE_DIR}/$file"
|
||||||
|
Loading…
Reference in New Issue
Block a user