1.8 KiB
1.8 KiB
Beckn-ONIX Setup Script
Overview
This shell script, start_beckn_v2.sh, automates the setup of Beckn components, including the Registry, Gateway, Protocol Server BAP, Protocol Server BPP, Sandbox, Webhook, and supporting services such as MongoDB, Redis, and RabbitMQ.
How to Use
-
Clone the Repository:
git clone -b main https://github.com/beckn/onix.git -
Navigate to the Script Directory:
cd onix/install -
Run the Setup Script:
./start_beckn_v2.shThe script will guide you through the installation.
Installation Sequence - Design
-
Install Required Packages: It will install Docker, Docker-Compose, and jq packages which are required for this setup.
./package_manager.sh -
Install Registry Service:
./start_container registry -
Install Gateway Service:
./update_gateway_details.sh registry ./start_container gateway ./register_gateway.sh -
Start Supporting Services:
- MongoDB
- RabbitMQ
- Redis
./start_support_services -
Install Protocol Server for BAP:
./update_bap_config.sh ./start_container "bap-client" ./start_container "bap-network" -
Install Sandbox:
./start_container "sandbox-api" -
Install Protocol Server for BPP:
./update_bpp_config.sh ./start_container "bpp-client" ./start_container "bpp-network"
Post-Installation Details
Upon successful execution, the script provides the following details for use in the Postman collection: For Example
BASE_URL=http://172.18.0.7:5001/
BAP_ID=bap-network
BAP_URI=http://172.18.0.11:5002/
BPP_ID=bpp-network
BPP_URI=http://172.18.0.12:6002/