@risk-labs/serverless-orchestration
This repository contains scripts that enable bots to be run in a serverless fashion.
Orchestration scripts
The two serverless orchestration scripts are:
-
The ServerlessHub script which reads in a global configuration file stored and executes parallel serverless instances for each configured bot. This enables one global config file to define all bot instances. This drastically simplifying the devops and management overhead for spinning up new instances as this can be done by simply updating a single config file.
-
The ServerlessSpoke script which enables serverless functions to execute any arbitrary command from the UMA/Across Docker container. This can be run on a local machine, within GCP cloud run or GCP cloud function environments.
Run tests 🦾
To run tests, you'll need to start ganache on port 9545:
yarn ganache-cli -e 1000000000 -p 9545 -l 9000000 -d