-
Notifications
You must be signed in to change notification settings - Fork 50
Source based Start Guide
ByoungSeob Kim edited this page Mar 19, 2026
·
7 revisions
CB-Spider — One unified API to control multiple clouds. This guide shows you how to build CB-Spider from source and start the server.
This guide is based on a Linux environment (Ubuntu 24.04 LTS recommended).
-
Build Tools:
make,gcc,git,snapd -
Go: 1.23 or later (
sudo snap install go --channel=1.23/stable --classic) -
Swag: for Swagger doc generation (
go install github.com/swaggo/swag/cmd/swag@latest) -
curl / jq: for API verification (
sudo apt install -y curl jq)
# Install dependencies
sudo apt update && sudo apt install -y make gcc snapd git jq
sudo snap install go --channel=1.23/stable --classic
go install github.com/swaggo/swag/cmd/swag@latest
# Clone and build
git clone https://github.com/cloud-barista/cb-spider.git $HOME/cb-spider
cd $HOME/cb-spider
makeOpen Terminal 1 and run:
vi $HOME/cb-spider/setup.env # Set SPIDER_USERNAME and SPIDER_PASSWORD
source ./setup.env && source ./develop.env
cd $CBSPIDER_ROOT/bin && ./start.sh
⚠️ You must set bothSPIDER_USERNAMEandSPIDER_PASSWORDinsetup.env. The server will not start without both credentials.
Wait for 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
Server management commands:
./status.sh # Check status
./stop.sh # Stop server
./start.sh # Start again📖 Server Configuration | Authentication Guide
Open Terminal 2 and verify:
curl -sX GET http://localhost:1024/spider/readyz# List all supported cloud providers
curl -sX GET -u admin:your-password \
http://localhost:1024/spider/cloudos | jq '.cloudos'Health check endpoints (
/readyz,/healthcheck,/health,/ping) do not require authentication.
All other REST API calls require Basic Auth (e.g.-u admin:your-password).
Output includes: "AWS", "GCP", "AZURE", and more.
cd $CBSPIDER_ROOT/bin && ./stop.shtail -f $HOME/cb-spider/log/cblogs.log# Removes all registered clouds/resources
cd $CBSPIDER_ROOT/bin && ./stop.sh && rm -rf ${HOME}/cb-spider/meta_db/*| Problem | Cause | Solution |
|---|---|---|
| Server won't start | Missing credentials | Set SPIDER_USERNAME and SPIDER_PASSWORD in setup.env or as environment variables |
| Build fails | Go version too old | Ensure Go 1.23+ (go version) |
| Port conflict | Port 1024 in use |
sudo lsof -i :1024 then stop the conflicting process |
-
Install & Start Guide
-
Usage Guide
- Usage Overview
- Connection Management
- Region/Zone Info
- Quota Info
- VM Price Info
- VM Image Info
- VM Spec Info
- VPC/Subnet Management
- Security Group Management
- KeyPair Management
- VM Management
- Disk Management
- Network Load Balancer(NLB) Management
- Kubernetes Cluster Management
- Object Storage(S3) Management
- Tag Management
- Cloud Driver Capability Info
- Function Menu
- MetaDB Auto Backup
- How to get CSP Credentials
- Tutorials
- Developer Guide
- Cloud Driver Developer Guide
- Cloud Driver Developer Guide-WIP
- VM SSH Key Development Guide-WIP
- VM User Development Guide
- What is the CSP SDK API Version of drivers
- Region Zone Info and Driver API
- (StartVM TerminateVM) API Call Counts and Waiting
- StartVM and TerminateVM Main Flow of drivers
- VM Root Disk Configuration Guide
- Security Group Rules and Driver API
- Network Load Balancer and Driver API
- VM Snapshot, MyImage and Disk Overview
- Kubernetes and Driver API(PMKS, K8S)
- Tag and Cloud Driver API
- AnyCall API Extension Guide
- How to ...
- How to Use AWS S3 with Credentials
- How to Use Alibaba ECS i1.* Instance Types
- How to provision GPU VMs
- How to test CB Spider with Mock Driver
- How to install CB Spider on WSL2 under 공유기/사설망
- How to install CB Spider on macOS
- How to run CB Spider Container on macOS
- How to get Azure available Regions
- How to profile memory usage in Golang
- [For Cloud-Migrator]