Skip to content
forked from slmnhq/chorus

Chorus allows customers, partners, developers, and data scientists to collaboratively realize the potential of Big Data.

License

Notifications You must be signed in to change notification settings

hey-jude/chorus

Repository files navigation

#Greenplum Chorusrails

This file contains instructions to get started on Mac OSX. If you are running Linux, it shouldn't be too different.

##Bootstrap

Install homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"

You need git

brew install git

Get someone who has rights to the repository to add your github account to the repo. Check that you can get to Github correctly:

The response should have your username in it. If it doesn't go to http://help.github.com/ssh-issues/

Check out the repo in ~/workspace/chorusrails, like so:

git clone [email protected]:GreenplumChorus/chorusrails.git ~/workspace/chorusrails

###Postgres

Install postgres if you don't have it

brew install postgres

You may have to increase some memory limits:

sudo sysctl -w kern.sysv.shmall=65536
sudo sysctl -w kern.sysv.shmmax=16777216

You can put these settings in your /etc/sysctl.conf file, and they will become effective whenever you boot:

kern.sysv.shmall=65536
kern.sysv.shmmax=16777216

If you don't have a /etc/sysctl.conf file, just create one.

OSX Lion may not retain these settings between reboots, so you may see the message could not create shared memory segment: Invalid argumentindicating that thesysctl` commands need to be run again.

Then create the database folder

initdb -D ~/workspace/chorusrails/var/db

XCode

You need XCode for a compiler

Install ruby

If you are currently using RVM, remove it.

Mostly, you need to run

rvm implode

You should also remove any references to RVM in your bash setup. As a start, run...

grep -i rvm ~/.bash* | grep -v .bash_history

Which will list files that reference RVM. Edit those files to remove rvm completely.

Note that this will break RVM in other systems, notably the chorus-java project. See the README in the chorus-java project for the new way to install Ruby.

Start a new terminal.

Run script/bootstrap

From the root directory of this project, run:

script/bootstrap.sh

This script

  • Installs rbenv
  • Installs ruby (at the version found in .rbenv-version)
  • Installs bundler
  • Installs gems
  • Creates databases
  • Runs tests

Development

cd ~/workspace/chorusrails && rails s

Run postgres:
(Currently the database lives in the old Chorus project)
ps aux | grep -- '-p8543' | grep -v grep | awk '{print $2}' | xargs kill -9
postgres -D ~/workspace/chorus/var/db -h localhost -p8543 --bytea_output=escape

rake db:migrate
rake db:test:prepare

Application will be on http://localhost:3000

If you cannot log in as edcadmin, you first need to initialize the it in the database with

rake db:seed

Testing:

script/test

CI

http://greenplum-ci:3333/builds/chorusrails

About

Chorus allows customers, partners, developers, and data scientists to collaboratively realize the potential of Big Data.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 54.4%
  • Ruby 33.9%
  • CSS 5.0%
  • HTML 4.8%
  • Shell 1.0%
  • Python 0.9%