Skip to content

Installation

Eunsang edited this page Dec 15, 2022 · 10 revisions

Installing using cb-operator

  • See cb-operator.
  • "cb-operator" is the operation tool for Cloud-Barista system runtime.

Installing manually

Prerequisites

$ git clone https://github.com/cloud-barista/cb-operator.git
$ cp -r cb-operator/docker-compose-mode-files $(pwd)/data
$ mkdir -p data/data/

If you're using "docker-compose"

  • Create a docker-compose.yaml
$ cat > docker-compose.yaml <<EOF
version: "3.8"
services:
  cb-spider:
    image: cloudbaristaorg/cb-spider:latest
    ports:
      - 1024:1024
    environment:
      - CBSTORE_ROOT=/data
    volumes:
      - ./data/conf/cb-spider:/data/conf
      - ./data/data/cb-spider:/data/meta_db/dat"
  cb-tumblebug:
    image: cloudbaristaorg/cb-tumblebug:latest
    ports:
      - 1323:1323
    links:
      - cb-spider
    volumes:
      - ./data/conf/cb-tumblebug:/app/conf
      - ./data/data/cb-tumblebug:/app/meta_db/dat
      - ./data/logs/cb-tumblebug:/app/log
  cb-ladybug:
    image: cloudbaristaorg/cb-ladybug:latest
    ports:
      - 1470:1470
    environment:
      - SPIDER_URL=http://cb-spider:1024/spider
      - TUMBLEBUG_URL=http://cb-tumblebug:1323/tumblebug
      - CBSTORE_ROOT=/data
    links:
      - cb-spider
      - cb-tumblebug
    volumes:
      - ./data/conf/cb-ladybug:/data/conf
      - ./data/data/cb-ladybug:/data/meta_db/dat
EOF
  • start-up
$ docker-compose -f docker-compose.yaml up -d
  • clean-up
$ docker-compose -f docker-compose.yaml down

If you're using "docker run"

  • start-up
$ docker run --rm -d -p 1024:1024 --name cb-spider \
  -v "$(pwd)/data/conf/cb-spider:/data/conf" \
  -v "$(pwd)/data/data/cb-spider:/data/meta_db/dat" \
  -e CBSTORE_ROOT=/data \
  cloudbaristaorg/cb-spider:latest

$ docker run --rm -d -p 1323:1323 --name cb-tumblebug \
  --link cb-spider:cb-spider \
  -v "$(pwd)/data/conf/cb-tumblebug:/app/conf" \
  -v "$(pwd)/data/data/cb-tumblebug:/app/meta_db/dat" \
  -v "$(pwd)/data/logs/cb-tumblebug:/app/log" \
  cloudbaristaorg/cb-tumblebug:latest

$ docker run --rm -d -p 1470:1470 --name cb-ladybug\
  --link cb-spider:cb-spider \
  --link cb-tumblebug:cb-tumblebug \
  -v "$(pwd)/data/conf/cb-ladybug:/data/conf" \
  -v "$(pwd)/data/data/cb-ladybug:/data/meta_db/dat" \
  -e SPIDER_URL=http://cb-spider:1024/spider \
  -e TUMBLEBUG_URL=http://cb-tumblebug:1323/tumblebug \
  -e CBSTORE_ROOT=/data \
  cloudbaristaorg/cb-ladybug:latest
  • clean-up
$ docker stop cb-ladybug cb-tumblebug cb-spider

Verify

# spider
$ curl -s -w "%{http_code}\n" -o /dev/null http://localhost:1024/spider

# tumblebug
$ curl -s -w "%{http_code}\n" -H "Authorization: Basic $(echo -n default:default | base64)" -o /dev/null http://localhost:1323/tumblebug/ns

# ladybug
$ curl -s -w "%{http_code}\n" -o /dev/null http://localhost:1470/ladybug/healthy