Created
September 16, 2012 10:40
-
-
Save marekjelen/3731919 to your computer and use it in GitHub Desktop.
OpenShift @ Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Resources: | |
| # | |
| # * http://bencord0.wordpress.com/2012/08/11/openshift/ | |
| # | |
| # Starting with clean install of Ubuntu for start | |
| # Update the system | |
| apt-get update | |
| apt-get upgrade | |
| # Ruby through RVM | |
| apt-get install curl | |
| curl -L https://get.rvm.io | bash -s stable | |
| apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config | |
| rvm install ruby-1.8 | |
| rvm use ruby-1.8 --default | |
| # Ruby through Ubuntu | |
| apt-get install ruby rubygems | |
| # MongoDB (10gen) | |
| apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 | |
| cat <<EOF >> /etc/apt/sources.list | |
| deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen | |
| EOF | |
| apt-get update | |
| apt-get install mongodb-10gen | |
| # enable MongoDB auth - uncomment auth = true in /etc/mongodb.conf | |
| mongo | |
| # > use 'admin' | |
| # > db.addUser('admin','<password>'); | |
| service mongodb restart | |
| mongo | |
| # > use admin; | |
| # > db.auth('admin', '<password>'); | |
| # > use 'openshift'; | |
| # > db.addUser('openshift','<password>'); | |
| # Get OpenShift | |
| apt-get install git | |
| git clone git://github.com/marekjelen/crankcase.git | |
| git checkout ubuntu | |
| # Build and install gems in stickshift/{common,controller,node} | |
| cd stickshift/broker | |
| # edit config/environments/{development,test}.rb with your MongoDB configuration | |
| gem install bundler | |
| bundle update | |
| # edit script/rails; remove all keys starting SSH; change port | |
| # Start broker | |
| bundle exec rails server | |
| # Run tests | |
| rake test | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment