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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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.yamlhas 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.yamlYou can find the
docker-compose.yamlfile located in the CB-Tumblebug root directory. You can review, verify, and modify any necessary configurations.☑️ CB-Tumblebug
docker-compose.yaml2. Run the services
You can run the services, defined in the
docker-compose.yamlStart Services in detached mode:
The
-doption 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.yamlCheck 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.yamland.envallow you to set existing environment variables for CB-Tumblebug and related components.: .envis 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.env3. Run the services
You can run the services, defined in the
docker-compose-custom.yamlStart Services in detached mode:
The
-doption 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 up4. Check the services
You can view a list of all service containers defined in the
docker-compose.yamlCheck 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:
--helpoptionPlease refer to the following for frequently used commands.
-foption:To set the specific
docker-compose.yamlfile or pathstartcommandTo start a specific service, which is down
stopcommandTo stop a specific service, which is down
restartcommandTo restart a specific service
execcommanddocker compose exec cb-mapui envTo execute a command to a specific service
runcommandTo run a specific command in the service container one-time
configcommandTo check configs (Note: Useful when using multiple configuration files with the
-foption)Beta Was this translation helpful? Give feedback.
All reactions