Skip to content

Commit eddb3df

Browse files
committed
devcloud: Move build scripts to src/, fix README and rm Gemfile.lock
- Move build scripts to src/ - Fix README.md - Remove and ignore Gemfile.lock - Fix tabs in boxer.sh - Move to src/ Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
1 parent e46aa61 commit eddb3df

45 files changed

Lines changed: 223 additions & 385 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,4 @@ docs/tmp
7373
docs/publish
7474
docs/runbook/tmp
7575
docs/runbook/publish
76+
Gemfile.lock

tools/devcloud/README.md

Lines changed: 54 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,52 +21,82 @@ NOTE - This folder is a work in progress. The project has not determined
2121
how to best establish a nightly DevCloud build process, or how to distribute
2222
the image.
2323

24-
2524
===========================================================
26-
# How to use devcloud
2725

28-
Install RVM with the latest ruby 1.9.3 patch set (not documented)
26+
# Setting up Tools and Environment
27+
28+
- Install [RVM](https://rvm.io/rvm/install)
29+
- Setup paths:
30+
export PATH=~/.rvm/bin:$PATH
31+
- Install Ruby 1.9.3, if it installed some other version:
32+
rvm install 1.9.3
33+
34+
All the dependencies will be fetched automatically.
35+
36+
Vagrant: https://github.com/chipchilders/vagrant.git
37+
Veewee: https://github.com/jedi4ever/veewee.git
38+
39+
devcloudbase/Ubuntu: http://releases.ubuntu.com/12.04/ubuntu-12.04.1-server-i386.iso
40+
41+
To save some time if you've downloaded iso of your distro, put the isos in:
42+
tools/devcloud/deps/boxes/basebox-build/iso/
2943

44+
Note, gem would require gcc-4.2, make sure link exists:
3045

31-
cd deps
46+
sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2
3247

33-
cd deps/
34-
#cleans up any old stuff
35-
./boxer.sh -c all
36-
#builds the dependent vms
37-
./boxer.sh -b all
48+
# How to build DevCloud
3849

50+
DevCloud build scripts are in src/
51+
Move to src/deps/ to start the build process:
3952

40-
After that is complete
53+
cd src/deps/
4154

42-
#go back to the devcloud homedir
43-
cd ../
44-
#bring up the devcloud vm
45-
vagrant up
55+
Clean up any old stuff:
56+
57+
./boxer.sh -c all
58+
59+
Build the dependent vms:
60+
61+
./boxer.sh -b all
62+
63+
Now, start DevCloud:
64+
65+
# Go back to the devcloud homedir
66+
cd ../
67+
# Bring up the devcloud vm
68+
vagrant up
4669

4770
If you get a vagrant error, at that point, try:
4871

49-
source .rvmrc
50-
vagrant up
72+
source .rvmrc
73+
vagrant up
74+
75+
# CloudStack Build Automation in DevCloud
5176

5277
If you want to compile cloudstack in the devcloud vm:
5378

54-
vim puppet/modules/devcloud/manifests/params.pp
79+
vim puppet/modules/devcloud/manifests/params.pp
5580

5681
and set
5782

58-
$build_cloudstack = true
83+
$build_cloudstack = true
5984

6085
alternately, if you do not want to build cloudstack in the devcloud vm, set:
6186

62-
$build_cloudstack = false
87+
$build_cloudstack = false
6388

6489

65-
It will now bring up the devcloud vm for this first time. Note that it will attempt to download the SSVM and CPVM templates so it will take a long time to launch initially. It will also git clone the cloudstack repository and attempt to build an launch it.
90+
It will now bring up the devcloud vm for this first time. Note that it will
91+
attempt to download the SSVM and CPVM templates so it will take a long time to
92+
launch initially. It will also git clone the cloudstack repository and attempt
93+
to build an launch it.
6694

67-
You can optionally speed things up by packaging a successful devcloud instance build. This will make subsequent launches must faster since it won't have to re-downoad the SSVM and CPVM. Once it has successfully been built, you can run:
95+
You can optionally speed things up by packaging a successful devcloud instance
96+
build. This will make subsequent launches must faster since it won't have to
97+
re-downoad the SSVM and CPVM. Once it has successfully been built, you can run:
6898

6999
#exports the devcloud vagrant instance and adds it as "devcloud" to vagrant boxlist
70-
./boxit.sh
71-
#modifies the Vagrant file to use this newly added instance
72-
sed -i 's,devcloudbase-xen,devcloud,g' Vagrantfile
100+
./boxit.sh
101+
#modifies the Vagrant file to use this newly added instance
102+
sed -i 's,devcloudbase-xen,devcloud,g' Vagrantfile

tools/devcloud/deps/boxer.sh

Lines changed: 0 additions & 176 deletions
This file was deleted.

0 commit comments

Comments
 (0)