Browse Source

fixed installer problems for mongodb and go

Patrick Falls 12 years ago
parent
commit
7f8555d71e
4 changed files with 12 additions and 11 deletions
  1. 8 4
      README.md
  2. 1 1
      config/benchmark_profile
  3. 2 5
      installer.py
  4. 1 1
      webgo/setup.py

+ 8 - 4
README.md

@@ -46,8 +46,10 @@ Next, we're going to setup the servers with all the necessary software:
     source ~/.bash_profile
     # Most software is installed autormatically by the script, but running the mongo command below from 
     # the install script was causing some errors. For now this needs to be run manually.
-    go get github.com/hoisie/web
-	mongo --host client-private-ip < config/create.js
+    cd installs/jruby-rack && rvm jruby-1.7.3 do jruby -S bundle exec rake clean gem SKIP_SPECS=true"
+    cd target && rvm jruby-1.7.3 do gem install jruby-rack-1.2.0.SNAPSHOT.gem
+    cd ../..
+	  mongo --host client-private-ip < config/create.js
 
 Assuming the above finished without error, we're ready to start the test suite:
 
@@ -94,8 +96,10 @@ Next, we're going to setup the servers with all the necessary software:
     source ~/.bash_profile
     # Most software is installed autormatically by the script, but running the mongo command below from
     # the install script was causing some errors. For now this needs to be run manually.
-    go get github.com/hoisie/web
-	mongo --host client-ip < config/create.js
+    cd installs/jruby-rack && rvm jruby-1.7.3 do jruby -S bundle exec rake clean gem SKIP_SPECS=true"
+    cd target && rvm jruby-1.7.3 do gem install jruby-rack-1.2.0.SNAPSHOT.gem
+    cd ../..
+    mongo --host client-ip < config/create.js
 
 Assuming this finished without error, we're ready to start the test suite:
 

+ 1 - 1
config/benchmark_profile

@@ -3,7 +3,7 @@ export RESIN_HOME=~/FrameworkBenchmarks/installs/resin-4.0.34
 export GRAILS_HOME=~/FrameworkBenchmarks/installs/grails-2.1.1
 export VERTX_HOME=~/FrameworkBenchmarks/installs/vert.x-1.3.1.final
 export GOROOT=~/FrameworkBenchmarks/installs/go
-export GOPATH=$GOROOT:~/FrameworkBenchmarks/go:~/FrameworkBenchmarks/webgo
+export GOPATH=~/FrameworkBenchmarks/go:~/FrameworkBenchmarks/webgo:$GOROOT
 export TOMCAT_HOME=~/FrameworkBenchmarks/installs/apache-tomcat-7.0.35
 export NODE_HOME=~/FrameworkBenchmarks/installs/node-v0.10.2-linux-x64
 export PLAY_HOME=~/FrameworkBenchmarks/installs/play-2.1.1

+ 2 - 5
installer.py

@@ -36,11 +36,8 @@ class Installer:
     self.__run_command("sudo cp ../config/erlang.list /etc/apt/sources.list.d/erlang.list")
     self.__run_command("wget -O - http://binaries.erlang-solutions.com/debian/erlang_solutions.asc | sudo apt-key add -")
     self.__run_command("sudo apt-get update")
-    self.__run_command("sudo apt-get install esl-erlang")
+    self.__run_command("sudo apt-get install esl-erlang", True)
     
-    #self.__run_command("curl -klO https://elearning.erlang-solutions.com/couchdb//rbingen_adapter//package_R16B_precise64_1361901944/esl-erlang_16.b-1~ubuntu~precise_amd64.deb")
-    #self.__run_command("sudo /usr/bin/dpkg --install esl-erlang_16.b-1~ubuntu~precise_amd64.deb")
-
     #
     # Python
     #
@@ -313,7 +310,7 @@ class Installer:
     # MongoDB
     ##############################
     sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
-    sudo cp config/10gen.list /etc/apt/sources.list.d/10gen.list
+    sudo cp 10gen.list /etc/apt/sources.list.d/10gen.list
     sudo apt-get update 
     yes | sudo apt-get install mongodb-10gen
     

+ 1 - 1
webgo/setup.py

@@ -4,7 +4,7 @@ import sys
 import os
 
 def start(args):
-  
+  subprocess.call("go get ./...", shell=True, cwd="webgo")
   subprocess.Popen("go run src/hello/hello.go".rsplit(" "), cwd="webgo")
   return 0
 def stop():