Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add interactive scripts to run containers to support CB-Tumblebug #764

Merged
merged 7 commits into from
Sep 24, 2021

Conversation

seokho-son
Copy link
Member

[major]

  • Add runContainer.sh for general docker run
  • Add runSpider.sh for spider
  • Add runTumblebug.sh for TB
  • Add runMapUI.sh for mapUI

[minor]

  • Relocate ./assets/scripts to ./scripts
  • Update dockerfile for assets directory copy
  • Update build workflows ignore path

Interactive execution.

shson@dev:~/go/src/github.com/cloud-barista/cb-tumblebug$ ./scripts/runSpider.sh 

==========================================================
[Info]
==========================================================
This script runs a CB-Spider docker container.
(If CB-Spider is running already, no need to continue.)

- Container Name: CB-Spider
- Container Version: 0.4.9
- Container Port Option: -p 1024:1024 -p 2048:2048
- Container Data Path: /root/go/src/github.com/cloud-barista/cb-spider/meta_db

Do you want to proceed ? (y/n) : y


==========================================================
[Check docker is running]
==========================================================
[sudo] shson의 암호: 
Docker version 20.10.8, build 3967b7d

[Stop existing CB-Spider container to prevent duplication]
==========================================================
Error response from daemon: No such container: cb-spider


==========================================================
[Check the command to run CB-Spider container]
==========================================================

sudo docker run --rm -p 1024:1024 -p 2048:2048 \
                -v /home/shson/go/src/github.com/cloud-barista/cb-tumblebug/meta_db/cb-spider-container:/root/go/src/github.com/cloud-barista/cb-spider/meta_db \
                --name cb-spider \
                cloudbaristaorg/cb-spider:0.4.9


==========================================================
Do you want to proceed ? (y/n) : n
Do you want to run another version of CB-Spider ? (y/n) : y

==========================================================
[List of all version tags in hub.docker]

v0.3.5
v0.3.4
v0.3.3
...
latest
0.4.9
0.4.8
...
0.3.15
0.3.14
0.3.13
Please specify CB-Spider version you want (latest / 0.4.9 / ...): latest


==========================================================
[Check the command to run CB-Spider container]
==========================================================

sudo docker run --rm -p 1024:1024 -p 2048:2048 \
                -v /home/shson/go/src/github.com/cloud-barista/cb-tumblebug/meta_db/cb-spider-container:/root/go/src/github.com/cloud-barista/cb-spider/meta_db \
                --name cb-spider \
                cloudbaristaorg/cb-spider:latest

Do you want to proceed ? (y/n) : y


==========================================================
- To stop container:
  [Ctrl+C] or [sudo docker stop cb-spider]

- To delete container volume:
  [sudo rm -rf /home/shson/go/src/github.com/cloud-barista/cb-tumblebug/meta_db/cb-spider-container]
==========================================================

[CB-SPIDER].[INFO]: 2021-09-23 22:00:27 nutsdb-driver.go:36, github.com/cloud-barista/cb-store/store-drivers/nutsdb-driver.initialize() - ######## dbfile: /root/go/src/github.com/cloud-barista/cb-spider/meta_db/dat 
....
  <CB-Spider> Multi-Cloud Infrastructure Federation Framework
     - AdminWeb: http://11xxxxxxxx198:1024/spider/adminweb
     - REST API: http://11xxxxxx24/xspider
     - Go   API: grpc://1xxxxxxxxx0.198:2048

@jihoon-seo jihoon-seo merged commit fc375a6 into cloud-barista:main Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants