diff --git a/images/custom/Containerfile b/images/custom/Containerfile index 38200b87f..b6a48334c 100644 --- a/images/custom/Containerfile +++ b/images/custom/Containerfile @@ -127,28 +127,22 @@ RUN export APP_INSTALL_ARGS="" && \ --verbose \ /home/frappe/frappe-bench && \ cd /home/frappe/frappe-bench && \ - apps=( \ - "https://github.com/frappe/erpnext version-15" \ - "https://github.com/frappe/payments version-15" \ - "https://github.com/navariltd/navari_csf_ke version-15" \ - "https://github.com/frappe/hrms version-15" \ - "https://github.com/navariltd/kenya-compliance develop" \ - "https://github.com/navariltd/frappe-mpesa-payments develop" \ - "https://github.com/navariltd/navari-mpesa-b2c develop" \ - "https://github.com/navariltd/nl-attendance-timesheet version-15" \ - "https://github.com/navariltd/nl-piece-rate-pay version-15" \ - "https://github.com/shridarpatil/frappe_whatsapp master" \ - "https://github.com/frappe/education version-15" \ - "https://github.com/mymi14s/frappe_paystack version-15" \ - "https://github.com/frappe/print_designer develop" \ - "https://github.com/frappe/webshop version-15" \ - "https://github.com/bhavesh95863/whitelabel version-15" \ - ) && \ - for app in "${apps[@]}"; do \ - app_url=$(echo "$app" | awk '{print $1}') && \ - branch=$(echo "$app" | awk '{print $2}') && \ - bench get-app --branch="$branch" --resolve-deps "$(basename $app_url .git)" "$app_url"; \ - done && \ + # Clone apps one by one + bench get-app --branch=version-15 --resolve-deps erpnext https://github.com/frappe/erpnext && \ + bench get-app --branch=version-15 --resolve-deps payments https://github.com/frappe/payments && \ + bench get-app --branch=version-15 --resolve-deps navari_csf_ke https://github.com/navariltd/navari_csf_ke && \ + bench get-app --branch=version-15 --resolve-deps hrms https://github.com/frappe/hrms && \ + bench get-app --branch=develop --resolve-deps kenya_compliance https://github.com/navariltd/kenya-compliance && \ + bench get-app --branch=develop --resolve-deps frappe_mpesa_payments https://github.com/navariltd/frappe-mpesa-payments && \ + bench get-app --branch=develop --resolve-deps navari_mpesa_b2c https://github.com/navariltd/navari-mpesa-b2c && \ + bench get-app --branch=version-15 --resolve-deps nl_attendance_timesheet https://github.com/navariltd/nl-attendance-timesheet && \ + bench get-app --branch=version-15 --resolve-deps nl_piece_rate_pay https://github.com/navariltd/nl-piece-rate-pay && \ + bench get-app --branch=master --resolve-deps frappe_whatsapp https://github.com/shridarpatil/frappe_whatsapp && \ + bench get-app --branch=version-15 --resolve-deps education https://github.com/frappe/education && \ + bench get-app --branch=version-15 --resolve-deps frappe_paystack https://github.com/mymi14s/frappe_paystack && \ + bench get-app --branch=develop --resolve-deps print_designer https://github.com/frappe/print_designer && \ + bench get-app --branch=version-15 --resolve-deps webshop https://github.com/frappe/webshop && \ + bench get-app --branch=version-15 --resolve-deps whitelabel https://github.com/bhavesh95863/whitelabel && \ echo "{}" > sites/common_site_config.json && \ find apps -mindepth 1 -path "*/.git" | xargs rm -fr