easy-install.py
is used to install ERPNext on a single VM. Users had to build image with custom apps separately. Although it is documented here frappe_docker/docs/custom-apps.md at main · frappe/frappe_docker · GitHub, it is not part of any script.
This PR adds build
command to easy-install.py
: feat: easy-install.py to build custom images by revant · Pull Request #1592 · frappe/bench · GitHub
To test it:
- Download the easy install (if PR is not merged, use my fork to download the script)
# wget https://raw.githubusercontent.com/frappe/bench/refs/heads/develop/easy-install.py
wget https://raw.githubusercontent.com/revant/bench/refs/heads/easy-build/easy-install.py
- Prepare the
apps.json
, create your own or download myapps.json
.
# nano apps.json
wget https://gitlab.com/castlecraft/cepl-erpnext-images/-/raw/main/apps.json
- Build image
python3 easy-install.py build --apps-json=apps.json --tag custom-apps:v202410291200
Command loads apps.json
and tags the image as custom-apps:v202410291200
- Deploy as docker compose project
build_test
python3 easy-install.py -p -n build_test --email test@frappe.io --image custom-apps --version v202410291200 --app erpnext --app hrms --app india_compliance --app wiki --app payments --app webshop
This will create a site and install apps specified.