-
Notifications
You must be signed in to change notification settings - Fork 48
CB Spider 서버 환경변수 설정 방법 (Korean)
ByoungSeob Kim edited this page May 9, 2024
·
12 revisions
CB-Spider는 서버의 운영 루트 경로 및 운영 방법 등의 설정을 위하여 환경변수를 사용하며, 세부 설정 방법은 다음과 같다.
Environment Variables | Descriptions | Default |
---|---|---|
CBSPIDER_ROOT | 설치된 CB-Spider 패키지의 Root 경로 설정 | setup.env 파일 위치로 자동 설정 |
LOCALHOST | deprecated after v0.4.3 cf) CB-Spider Service Address Configuration |
- |
SERVER_ADDRESS | since v0.4.4 cf) CB-Spider Service Address Configuration |
설정하지 않음 |
SERVICE_ADDRESS | since v0.4.4 cf) CB-Spider Service Address Configuration |
설정하지 않음 |
PLUGIN_SW | 클라우드 인프라 드라이버의 동적 추가 및 연동이 가능한 옵션. ON 설정시 공유 라이브러리 형식으로 빌드된 드라이버를 동적으로 등록 및 관리 가능 | PLUGIN_SW=OFF |
ID_TRANSFORM_MODE | 자원 생성시 ID 변환 여부 설정 옵션. OFF 설정시 UUID 형태의 ID 변환 없이 사용자가 입력한 ID를 그대로 CSP에 요청 (OFF 설정시 사용자는 CSP별 자원 Naming 제약 고려 필요) | ID_TRANSFORM_MODE=ON |
CBLOG_ROOT | 로그 출력을 위한 cb-log 의 Root 경로 설정, cb-log가 설정 파일 위치 검색 등에 활용 | CBSTORE_ROOT=$CBSPIDER_ROOT |
API_USERNAME API_PASSWORD | REST API 인증 설정을 위한 ID/PW 설정 | 설정하지 않음 |
$ vi ./setup.env
#!/bin/bash
# root path of cb-spider
SCRIPT_DIR=`dirname ${BASH_SOURCE[0]-$0}`
export CBSPIDER_ROOT=`cd $SCRIPT_DIR && pwd`
### Set Spider server Address of Service Address
# cf) https://github.com/cloud-barista/cb-spider/wiki/CB-Spider-Service-Address-Configuration
# default: unset SERVER_ADDRESS and unset SERVICE_ADDRESS
# examples for other service port
#export SERVER_ADDRESS=":3000"
# examples for K8S env
#export SERVER_ADDRESS=":1024"
#export SERVICE_ADDRESS="1.2.3.4:31024"
### Set the library type of Cloud Driver pkg.
# ON is a shared library type.
# default: OFF (will be deprecated)
export PLUGIN_SW=OFF
## If the value is OFF, Spider does not perform ID transformation.
# default: ON
export ID_MGMT_MODE=ON
# root path of cb-log
export CBLOG_ROOT=$CBSPIDER_ROOT
# docker test option
# default: OFF
export DOCKER_POC_TEST=OFF
# If the value is empty, REST Auth disabed.
export API_USERNAME=
export API_PASSWORD=
-
Install & Start Guide
-
Features & Usage
-
- AdminWeb Tool Guide
- CLI Tool Guide
- REST API 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
- Price 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 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]