2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-12-23 02:28:57 +00:00

fix: remove git remotes for erpnext (#1041)

fix github rate limit error on bench install-app
This commit is contained in:
Revant Nandgaonkar 2023-01-16 12:29:30 +05:30 committed by GitHub
parent 44d6f237d5
commit 7b193e3392
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,8 @@ RUN bench init \
cd /home/frappe/frappe-bench && \
bench get-app --branch=${ERPNEXT_BRANCH} --resolve-deps erpnext ${ERPNEXT_REPO} && \
echo "$(jq 'del(.db_host, .redis_cache, .redis_queue, .redis_socketio)' sites/common_site_config.json)" \
> sites/common_site_config.json
> sites/common_site_config.json && \
find apps -name .git -type d -prune | xargs -i git --git-dir {} remote rm upstream
FROM base as erpnext