-
Notifications
You must be signed in to change notification settings - Fork 50
CLI Tool Install Guide
ByoungSeob Kim edited this page Jun 28, 2021
·
18 revisions
* 본 가이드는 CB-Spider CLI 도구 spctl의 설치 방법을 제공한다.
* 본 가이드는 Ubuntu 18.04.5 LTS 또는 Ubuntu 20.04.2 LTS 중심으로 시험 되었다.
-
- CB-Spider 설치 및 실행 가이드 참고하여 CB-Spider 소스를 설치 및 빌드
- spctl 배포를 위한 cli 빌드 및 묶음 실행
cd $CBSPIDER_ROOT; make cli-dist;
- 실행 결과 다음과 같이 dist 경로에 spctl 패키지 압축 파일(예시:spctl-2021.06.17.08.tar.gz) 생성
cd $CBSPIDER_ROOT/dist;ls;
-
- $CBSPIDER_ROOT 환경변수 설정
cd $HOME/go/src/github.com/cloud-barista/cb-spider;source ./setup.env;
- CB-Spider CLI 도구 위치로 이동
cd $CBSPIDER_ROOT/interface;
- spctl 설정 파일에 CB-Spider 서버 주소를 설정(설정파일:grpc_conf.yaml)
cd $CBSPIDER_ROOT; vi grpc_conf.yaml
- $CBSPIDER_ROOT 환경변수 설정
-
- Terminal-1에서 생성한 spctl 패키지 묶음을 다운로드 후 압축 해제
- 본 가이드에서는 $HOME/spider 경로에 복사 후 압축 해제
cd $HOME/spider; tar -zxvf spctl-2021.06.15.11.tar.gz
- spctl 패키지가 존재하는 위치를 환경 변수 $CBSPIDER_ROOT로 설정
-
$HOME/spider
에 위치하는 경우 예시
export CBSPIDER_ROOT=$HOME/spider
-
- spctl 설정 파일에 CB-Spider 서버 주소를 설정(설정파일:grpc_conf.yaml)
cd $CBSPIDER_ROOT; vi grpc_conf.yaml
-
-
spctl 설치 위치로 이동
-
help 출력(-h, --help 또는 무옵션 가능)
./spctl -h
-
서브명령어 help 출력
./spctl vpc -h
-
연동 가능한 CSP 목록 출력
./spctl os list
output
cloudos: - ALIBABA - AWS - AZURE - CLOUDIT - GCP - MOCK - OPENSTACK
-
등록한 클라우드 연결 설정 목록 출력
./spctl connection list
output
connectionconfig: - ConfigName: alibaba-singapore-config ProviderName: ALIBABA DriverName: alibaba-driver01 CredentialName: alibaba-credential01 RegionName: alibaba-singapore - ConfigName: aws-ohio-config ProviderName: AWS DriverName: aws-driver01 CredentialName: aws-credential01 RegionName: aws-ohio
-
-
Install & Start Guide
-
Features & Usage
-
- AdminWeb Tool Guide
- CLI Tool Guide
- REST API Guide
- NLI Guide
-
Design
-
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
-
Test Reports
- v0.2.8-for-espresso-release
- v0.3.0-espresso-release
- Azure:Terminating VM
- cb-user@VM: ssh login, sudo run
- v0.3.14 test for SG Source
- v0.4.0-cafemocha-release
- Test via REST API Gateway
- Test Reports of v0.4.11 (IID2 initial Version)
- Test Reports of v0.4.12 (Register & Unregister existing Resources)
- Test Reports for v0.6.0 Release
- How to ...
- How to Use Alibaba ECS i1.* Instance Types
- How to provision GPU VMs
- How to Resolve the 'Failed to Connect to Database' Error
- 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 install OpenStack on a VM for CB Spider Testing
- How to get Azure available Regions
- How to profile memory usage in Golang
- Deprecated:How to install protoc and plugins
- [For Cloud-Migrator]