How to deploy CB-Tumblebug, along with its related components, using Docker Compose #1669
yunkon-kim
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to deploy CB-Tumblebug, along with its related components
This guide will help you to deploy CB-Tumblebug, along with its related components CB-Spider, etcd, and CB-MapUI, using Docker Compose.
In advance, I'd like to mention specifying the service to run, as it is required when developing CB-Tumblebug.
For example, CB-Tumblebug builds and runs the source code, and the remaining components can be run via Docker Compose.
From here, we will explain the two methods we provide.
Please note that it has been tested in the following environments.
Click to see the details
Pre-requisites, Install Docker and Docker Compose
First, please ensure that Docker and Docker Compose are installed on your system.
If they are not, you can install them using the following guides.
Test environment and test case
Simple method
:
docker-compose.yaml
has been set as default values for running CB-Tumblebug and related components.: All services are run via
docker compose up
.Please see the following for details on checking service status, initializing Tumblebug, and shutting it down.
1. Explore the
docker compose.yaml
You can find the
docker-compose.yaml
file located in the CB-Tumblebug root directory. You can review, verify, and modify any necessary configurations.☑️ CB-Tumblebug
docker-compose.yaml
2. Run the services
You can run the services, defined in the
docker-compose.yaml
Start Services in detached mode:
The
-d
option runs the containers in detached mode (in the background).3. Check the services
You can view a list of all service containers defined in the
docker-compose.yaml
Check Service Status:
View Logs:
4. Use the CB-Tumblebug service
You can find how to use CB-Tumblebug in the following links:
⏩ See (4) Configure Multi-Cloud info (required)
⏩ See How to Use CB-TB Features
5. Stop the services
We can stop all running containers (and remove networks and volumes created by
up
).Customizable method
: Predefined
docker-compose-custom.yaml
and.env
allow you to set existing environment variables for CB-Tumblebug and related components.: .env
is set to use the default value if the host environment variable is not set.: This allows us to set environment variables in a guided way in each component/service (e.g.
source setup.env
).: All services are run via
docker compose -f docker-compose-custom.yaml up
.: Please note that if the environment variable names are the same between components, it is difficult to use the existing names (e.g., API_USERNAME, API_PASSWORD).
: References:
1. Explore the env setup guide of each component
For example:
2. Set environment variables of each component
Tumblebug example
source conf/setup.env
3. Run the services
You can run the services, defined in the
docker-compose-custom.yaml
Start Services in detached mode:
The
-d
option runs the containers in detached mode (in the background).Note - It's possible to run with specific environment variable values, such as
COMPOSE_TB_VERSION_TAG=0.9.1 docker compose -f docker-compose-custom.yaml up
4. Check the services
You can view a list of all service containers defined in the
docker-compose.yaml
Check Service Status:
View Logs:
5. Use the CB-Tumblebug service
You can find how to use CB-Tumblebug in the following links:
⏩ See (4) Configure Multi-Cloud info (required)
⏩ See How to Use CB-TB Features
6. Stop the services
We can stop all running containers (and remove networks and volumes created by
up
).Appendix
Other useful commands and options
Click to see the details
We can view all the commands and options with the following commands:
--help
optionPlease refer to the following for frequently used commands.
-f
option:To set the specific
docker-compose.yaml
file or pathstart
commandTo start a specific service, which is down
stop
commandTo stop a specific service, which is down
restart
commandTo restart a specific service
exec
commanddocker compose exec cb-mapui env
To execute a command to a specific service
run
commandTo run a specific command in the service container one-time
config
commandTo check configs (Note: Useful when using multiple configuration files with the
-f
option)Beta Was this translation helpful? Give feedback.
All reactions