Project

Profile

Help

Task #7109

Updated by Ilfat Kinyaev about 4 years ago

# 1. Generate node (echo $? => 0)
./mdbci --template confs/mdbci_up_aws_test_config.json generate SOME_DIR

# 2. Up node\nodes (echo $? => 0).
./mdbci up SOME_DIR

# 3. Need write some command
Create mdbci confs at node from ssh:
# 3.1 Change directory to config:
cd ~/mdbci/SOME_DIR
# 3.2 Enter with ssh:
vagrant ssh galera0
# 3.2 Write some command at "script.sh", for example, copy script from /mdbci/scripts/run_integration_tests.sh:
nano script.sh
#crtl+v some text
DIR and ctrl+o to save, ctrl+x exit. some_log
# 3.3. For check, should be a created script.sh file: run command:
ls
# Or open the created file:
cat script.sh
# 3.4 Exit from vagrant ssh
exit

# 4. Run created script (will see script at console and echo $?=>0)
./mdbci ssh --command "cat script.sh" SOME_DIR/galera0

# 5. Run test ***
some_log" DIR

Back