Gentlemen,
I've included a few scripts to this email, to simplify the process of setting up a dev
env. These are just basic helper scripts that I wrote to help myself. To use:
Add $SCRIPTS_HOME=<path to scripts> to your bash_profile
You will need to follow the guide below when you first set up a dev env. After this you
can simply run:
`sudo start_dc_dev_services.sh`
clone_dc.sh : checks out agg, core and docs (use -a, -c, -d to only checkout one of
these). It also configures all the git hooks etc...
Below should all be run from the src dir of your checked out version of agg
add_mock_targets.sh : Adds the mock targets for buildings to your repo
create_db.sh : Simply creates all the db's needed on a fresh checkout (uses sqlite)
start_dc_dev_services.sh : Starts all the services needed for a dev environment, using
your checkout version of aggregator
----- Forwarded Message -----
From: "Martyn Taylor" <mtaylor(a)redhat.com>
To: "deltacloud-devel" <deltacloud-devel(a)lists.fedorahosted.org>
Sent: Monday, December 6, 2010 1:22:09 PM
Subject: Setting up Dev environment with Building + Mock Builds
Since this wasn't obvious, I thought I would document the process for setting up a dev
environment with Image building + Mock builds
1. Install, Configure and Run: DeltaCloud All DC Services (RPMs)
2. Stop 'deltacloud-image_builder_service' and 'deltacloud-aggregator'
- `sudo /etc/init.d/deltacloud-image_builder_service stop`
- `sudo /etc/init.d/deltacloud-aggregator stop`
3. In /etc/httpd/conf.d/deltacloud-aggregator.conf - comment out Alias and ProxyPass as
shown below:
NameVirtualHost *:80
<VirtualHost *:80>
ErrorLog /etc/httpd/logs/error_log
TransferLog /etc/httpd/logs/access_log
LogLevel warn
ProxyRequests Off
#Alias /deltacloud/stylesheets
"/usr/share/deltacloud-aggregator/public/stylesheets"
#Alias /deltacloud/images "/usr/share/deltacloud-aggregator/public/images"
#Alias /deltacloud/errors "/usr/share/deltacloud-aggregator/public/"
#ProxyPass /deltacloud/images !
#ProxyPass /deltacloud/stylesheets !
#ProxyPass /deltacloud/errors !
ProxyPass /deltacloud
http://localhost:3000/deltacloud
ProxyPassReverse /deltacloud
http://localhost:3000/deltacloud
#ProxyPassReverse /deltacloud/images !
#ProxyPassReverse /deltacloud/stylesheets !
#ProxyPassReverse /deltacloud/errors !
</VirtualHost>
4. Uncomment #mock and #name: Mock from
<dev_branch>/src/config/image_descriptor_targets.yml
5. Start Image Builder Service from <dev_branch>/src
- sudo ./image_builder_service/image_builder_service
6. Start DeltaCloud CE, from <dev_branch>/src
- `./script/server --path=/deltacloud`
In case of errors, check log: /var/log/deltacloud-aggregator/image_builder_service.log