Skip to content
Browse files

commenting

  • Loading branch information...
1 parent d9557ba commit 71ff692cfe8186f1f5f746e7d613b6ad1e64cc08 @zmsmith zmsmith committed Nov 8, 2011
Showing with 9 additions and 3 deletions.
  1. +9 −3 providers/build_repo.rb
View
12 providers/build_repo.rb
@@ -8,23 +8,25 @@
env_name = "#{app_name}-env"
project_home = "#{env_root}/#{env_name}"
- puts "#{env_root}"
- puts "#{app_name}-env"
-
+ # Give ownership of the directory that houses the virtualenv to the ubuntu user
directory "#{env_root}" do
owner "ubuntu"
group "ubuntu"
mode 0775
end
+ # Create the virtualenv
+
python_virtualenv "#{project_home}" do
owner "ubuntu"
group "ubuntu"
interpreter "python2.7"
action :create
end
+ # clone the repo
+
repo_address = "https://github.com/#{repo}.git"
execute "git_clone" do
@@ -33,6 +35,10 @@
cwd project_home
end
+ # install the external apps
+ # I'm not using the opscode cookbook because there's a bug
+ # around installing libraries with c extensions in virtualenvs
+
execute "#{project_home}/bin/pip install -r conf/external_apps.txt" do
user "ubuntu"
cwd "#{project_home}/#{app_name}"

0 comments on commit 71ff692

Please sign in to comment.
Something went wrong with that request. Please try again.