From 5cb375645c0b48e4bdc13f94b8ef6b6a1bd91fbc Mon Sep 17 00:00:00 2001 From: Paul Bourke Date: Fri, 7 Apr 2017 12:53:24 +0100 Subject: Add a Kolla 'devstack' mode Add a new variable 'kolla_devmode', which when enabled, clones and bindmounts service source code into the containers. This commit adds the relevant changes for Heat, more services can be added and built upon. Usage: * Set 'kolla_devmode: yes' * Code is cloned to /opt/stack/{{ project_name }} on target node(s) * Users can develop in these repos, and simply restart the container to pick up / test changes. Debugging can be done from the host via 'remote_pdb'[0]. [0] https://pypi.python.org/pypi/remote-pdb Implements: blueprint mount-sources Change-Id: Ic0431b10d723bf84eeefc72039376fe0058dd902 --- tools/cleanup-host | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/cleanup-host') diff --git a/tools/cleanup-host b/tools/cleanup-host index cc2aa322a..bf7584d3c 100755 --- a/tools/cleanup-host +++ b/tools/cleanup-host @@ -63,3 +63,8 @@ for dir in $FOLDER_PATH*; do rm -rfv $dir fi done + +if [[ "$destroy_include_dev" == "yes" ]]; then + echo "Cleaning up dev repos..." + rm -rfv "${kolla_dev_repos_directory}" +fi -- cgit v1.2.3