Quick Start Guide - cloud-barista/cb-spider GitHub Wiki
=========== Tested on: Ubuntu 22.04 LTS, Ubuntu 20.04.2 LTS, Ubuntu 18.04.5 LTS
-
install Go dev-env.
sudo apt update; sudo apt install -y make gcc; sudo apt install -y snapd; sudo snap install go --channel=1.23/stable --classic; go install github.com/swaggo/swag/cmd/swag@latest; sudo apt install -y git; -
install CB-Spider Source
git clone https://github.com/cloud-barista/cb-spider.git $HOME/cb-spider;git clone https://github.com/cloud-barista/cb-spider.git $HOME/cb-spider --branch v0.11.7; -
build CB-Spider Source
cd $HOME/cb-spider; make; -
check configurations in setup.env (Optional)
vi $HOME/cb-spider/setup.env -
setup CB-Spider Run environment
source ./setup.env; source ./develop.env; -
start CB-Spider Server
cd $CBSPIDER_ROOT/bin; ./start.sh;output:
<CB-Spider> Multi-Cloud Unified Interface Framework >> One-Code, Multi-Cloud - AdminWeb: http://localhost:1024/spider/adminweb - Swagger UI: http://localhost:1024/spider/api - Version: http://localhost:1024/spider/ver※ Note: How to Resolve the 'Failed to Connect to Database' Error
-
check the health of CB-Spider Server
[Terminal]
cd $CBSPIDER_ROOT/bin; ./status.sh;curl -sX GET http://localhost:1024/spider/readyz[Browser]
- Access AdminWeb
http://{server}:1024/spider/adminweb- REST API Endpoint
http://{server}:1024/spider -
stop CB-Spider Server
cd $CBSPIDER_ROOT/bin; ./stop.sh; -
start CB-Spider Server again
cd $CBSPIDER_ROOT/bin; ./start.sh; -
CB-Spider Configurations
-
Initialize Meta Info
cd $CBSPIDER_ROOT/bin; ./stop.sh; rm -rf $CBSPIDER_ROOT/meta_db/*;