summaryrefslogtreecommitdiffstats
path: root/utils/rubbos_dev_env_setup/env_config.sh
diff options
context:
space:
mode:
authorQiLiang <liangqi1@huawei.com>2015-12-17 14:09:28 +0000
committerQiLiang <liangqi1@huawei.com>2015-12-17 14:32:21 +0000
commit459ddd6e4bcd28b37b675eaba01501e17e50de39 (patch)
treefc4b9b22d3691b97ca0bf88c15ec6f9f562e2d63 /utils/rubbos_dev_env_setup/env_config.sh
parent833d16b53e59967db779b0eba37d4f7481cb94e9 (diff)
Add scripts to setup development env
Usage: apt-get install -y genisoimage \ libvirt-bin \ qemu-kvm service libvirt-bin restart cd bottlenecks/utils/rubbos_dev_env_setup ./deploy.sh The deploy.sh will create 9 vms (ip from 192.168.122.11 ~ 19): control,httpd,mysql,tomcat,client1,client2,client3,client4,benchmark TODO: add scripts to build initial disk.img JIRA:BOTTLENECK-24 Change-Id: I99b5bcae8b795cee80e8688aae18b69e46249548 Signed-off-by: QiLiang <liangqi1@huawei.com>
Diffstat (limited to 'utils/rubbos_dev_env_setup/env_config.sh')
-rw-r--r--utils/rubbos_dev_env_setup/env_config.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/rubbos_dev_env_setup/env_config.sh b/utils/rubbos_dev_env_setup/env_config.sh
new file mode 100644
index 00000000..326b9a57
--- /dev/null
+++ b/utils/rubbos_dev_env_setup/env_config.sh
@@ -0,0 +1,7 @@
+export HOSTNAMES=${HOSTNAMES:-"control,httpd,mysql,tomcat,client1,client2,client3,client4,benchmark"}
+export VIRT_NUMBER=9
+export VIRT_MEM=4096
+export VIRT_CPUS=4
+export IMAGE_URL=${IMAGE_URL:-"file:///bottlenecks/trusty-server-cloudimg-amd64-disk1.img"}
+export IMAGE_NAME=disk.img
+export IPADDR_PREFIX="192.168.122."