Skip to content

Docker based Start Guide

ByoungSeob Kim edited this page Sep 19, 2024 · 28 revisions

  • Start CB-Spider Server(latest)

    sudo docker run --rm -p 1024:1024 \
    -v ${HOME}/cloud-barista/cb-spider/meta_db:/root/go/src/github.com/cloud-barista/cb-spider/meta_db \
    --name cb-spider \
    cloudbaristaorg/cb-spider
    
    sudo docker run --rm -p 1024:1024 \
    -v ${HOME}/cloud-barista/cb-spider/meta_db:/root/go/src/github.com/cloud-barista/cb-spider/meta_db \
    --name cb-spider \
    cloudbaristaorg/cb-spider:latest
    
  • Start CB-Spider Server with Authorization Mode

    sudo docker run --rm -p 1024:1024 \
    -v ${HOME}/cloud-barista/cb-spider/meta_db:/root/go/src/github.com/cloud-barista/cb-spider/meta_db \
    --name cb-spider \
    -e API_USERNAME="default" -e API_PASSWORD="default" \
    cloudbaristaorg/cb-spider:0.8.19
    
  • Start CB-Spider Server with the specific Tag Version

    sudo docker run --rm -p 1024:1024 \
    -v ${HOME}/cloud-barista/cb-spider/meta_db:/root/go/src/github.com/cloud-barista/cb-spider/meta_db \
    --name cb-spider \
    cloudbaristaorg/cb-spider:0.7.0
    
  • Start CB-Spider Server with the Log Level Setup

    sudo docker run --rm -p 1024:1024 \
    -v ${HOME}/cloud-barista/cb-spider/meta_db:/root/go/src/github.com/cloud-barista/cb-spider/meta_db \
    --name cb-spider \
    -e SPIDER_LOG_LEVEL="error" -e SPIDER_HISCALL_LOG_LEVEL="error" \
    cloudbaristaorg/cb-spider:0.8.14
    
    • Log Level Options
      * SPIDER_LOG_LEVEL: trace | debug | info | warn/warning | error | fatal | panic
      * SPIDER_HISCALL_LOG_LEVEL: info | error
      
  • Start CB-Spider Server with Service Address Configuration

    sudo docker run -e SERVICE_ADDRESS="1.2.3.4:1024" --rm -p 1024:1024 \
    -v ${HOME}/cloud-barista/cb-spider/meta_db:/root/go/src/github.com/cloud-barista/cb-spider/meta_db \
    --name cb-spider \
    cloudbaristaorg/cb-spider
    
  • check CB-Spider Server

    $ curl -sX GET http://{server}:1024/spider/readyz
        or
    $ curl -sX GET http://{server}:1024/spider/cloudos |json_pp
        or
    <Browser> http://{server}:1024/spider
        or
    <Browser> http://{server}:1024/spider/adminweb
    
    
  • stop CB-Spider Server

    Ctl + C
       or
    $ sudo docker stop cb-spider
    
  • Server Configurations

  • Initialize Meta Info

    - stop Server
    - $ rm -rf cb-spider/meta_db/*
    - start Server
    

Table of contents



Clone this wiki locally