Project

Profile

Help

Task #7143

Create function that creates clone of docker machine/node by its name

Added by Alexander Kaluzhny almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Sprint/Milestone:
Start date:
28.06.2016
Due date:
% Done:

0%

Estimated time:
Target branch:
Test scenario:

./mdbci --template spec/test_machine_configurations/7143_test_config generate docker_ubuntu_test

./mdbci up docker_ubuntu_test

Run test (execute in shell)
path_to_nodes=docker_ubuntu_test node_name=node0 path_to_new_config_directory=new_docker_ubuntu_test rspec spec/unit/7143_clone_docker_node.rb


Description

Create function that makes clone of machine/node by its name.
Function parameters:
  • path to nodes(relative path in mdbci/ folder)
  • node name (like: node0)
  • path to new config directory (like: NEW_CONF_T)

How to make docker image clone is described here: https://linuxconfig.org/docker-container-backup-and-recovery.
Cloned machine should have generated name from two variable: new config directory name and node name, devided by underscore (like NEW_CONF_T_node0)
Function must throw exception if node or config directory or node are not found.
Function must throw exception if machine origin is in running state.
Function must be implemented in file clone.rb in core/ directory
Function returns new docker image name


Related issues

Related to [mdbci] Maria DB Continuous integration tool - Task #7100: Implement "mdbci clone <configuration> <new_path>" commandClosed22.06.2016

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

History

#1 Updated by Alexander Kaluzhny almost 5 years ago

  • Related to Task #7100: Implement "mdbci clone <configuration> <new_path>" command added

#2 Updated by Alexander Kaluzhny almost 5 years ago

  • Sprint/Milestone set to 0.9

#3 Updated by Mark Zaslavskiy almost 5 years ago

  • Assignee set to Alexander Kaluzhny

#4 Updated by Alexander Kaluzhny almost 5 years ago

  • Status changed from New to Active / In progress

#5 Updated by Alexander Kaluzhny almost 5 years ago

  • Description updated (diff)

#6 Updated by Alexander Kaluzhny almost 5 years ago

  • Test scenario updated (diff)

#8 Updated by Alexander Kaluzhny almost 5 years ago

  • Test scenario updated (diff)

#9 Updated by Alexander Kaluzhny almost 5 years ago

  • Status changed from Active / In progress to Review
  • Assignee changed from Alexander Kaluzhny to Mark Zaslavskiy

#11 Updated by Mark Zaslavskiy almost 5 years ago

  • Status changed from Review to New
  • Assignee changed from Mark Zaslavskiy to Alexander Kaluzhny

#12 Updated by Alexander Kaluzhny almost 5 years ago

  • Status changed from New to Active / In progress

#14 Updated by Alexander Kaluzhny almost 5 years ago

  • Status changed from Active / In progress to Review
  • Assignee changed from Alexander Kaluzhny to Mark Zaslavskiy

#15 Updated by Mark Zaslavskiy almost 5 years ago

  • Test scenario updated (diff)

#16 Updated by Mark Zaslavskiy almost 5 years ago

  • Status changed from Review to Closed

Also available in: Atom PDF