Skip to content

CB-Spider is a sub-Framework of the Cloud-Barista Multi-Cloud Project.

License

Notifications You must be signed in to change notification settings

zephy-mzc/cb-spider

 
 

Repository files navigation

cb-spider

CB-Spider is a sub-Framework of the Cloud-Barista Multi-Cloud Project.

The CB-Spider Mission is to connect all the clouds with a single interface.


[목 차]

  1. 설치 환경
  2. 소스 설치
  3. 실행 준비
  4. 서버 실행
  5. API 규격
  6. 활용 예시

[설치 환경]

  • 리눅스(검증시험:Ubuntu 18.04)

[소스 설치]

  • Git 설치

  • Go 설치(1.12 이상)

  • Cloud-Barista alliance 설치 (CB-Log)

  • Cloud-Barista alliance 설치 (CB-Store)

  • CB-Spider 설치

    • go get -u -v github.com/cloud-barista/cb-spider

[실행 준비]

  • CB-Spider 실행에 필요한 환경변수 설정

    • source setup.env (위치: ./cb-spider)
  • driver shared library 생성 방법(설시 시스템 당 1회 실행, driver source 변경시 실행)

  • cd cb-spider/cloud-control-manager/cloud-driver/drivers/aws # AWS Driver 경우

  • ./build_driver_lib.sh 실행

  • 결과: cb-spider/cloud-driver-libs/aws-driver-v1.0.so 생성

  • 참고: 제공하는 모든 driver 한번에 build 방법

    • cd github.com/cloud-barista/cb-spider
    • build_all_driver_lib.sh 실행

[서버 실행]

  • cd cb-spider/api-runtime/rest-runtime
  • go run *.go # 1024 포트 REST API Server 실행됨
  • 참고: 메타 정보 초기화 방법
  • cb-spider/meta_db/dat 아래 파일 삭제(ex: 0.dat) 후 서버 재가동

[API 규격]

[활용 예시]

  • 시험 도구: cb-spier/api-runtime/rest-runtime/test/aws (AWS 경우)
  • 시험 순서: 연동 정보 추가 => 자원등록 => VM 생성 및 제어 시험
  • 시험 방법:
    • cb-spider/api-runtime/rest-runtime/test/aws 아래 자원 별 디렉토리 시험 스크립트 존재
    • 자원별 create/list/get/delete 관련 shell 스크립트 실행
    • 자원 생성 순서
      • (1) vnetwork, keypair, publicip 및 securitygroup 생성
      • (2) vm 생성 및 제어
      • (3) delete는 자원 생성 역순

About

CB-Spider is a sub-Framework of the Cloud-Barista Multi-Cloud Project.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 87.4%
  • Shell 12.6%