Giter VIP home page Giter VIP logo

chef-openruko's Introduction

Bootstrapping OpenRuko

Chef recipes for bootstrapping OpenRuko.

Both a Vagrantfile for running local development environments and a generic deploy script for generic VPSs

Vagrant Install

To generate a new VirtualBox VM with OpenRuko and all its dependencies already installed.

$ sudo apt-get install vagrant
$ git clone https://github.com/openruko/chef-openruko.git
$ cd chef-openruko
$ vagrant up
# wait ...

VPS Install

This has been tested on vanilla installs of Ubuntu 12.04 64bit. So fire up a remote instance then on your local machine;

$ git clone https://github.com/openruko/chef-openruko.git
$ cd chef-openruko
$ ./deploy.sh root@<host>
# wait ...

Launch tests

The first usage of Chef OpenRuko was for testing openruko on a clean VM.

To launch the tests login to the server (vagrant ssh if your using Vagrant) and run:

<<<<<<< HEAD
[root/vagrant] $ sudo su - rukosan
=======
[root/vagrant] $ sudo su rukosan
>>>>>>> Updated README
[rukosan] $ cd /home/rukosan/openruko/integration-tests
[rukosan] $ ./run.sh

See also integration-tests

Standalone usage

If you are under a proxy, export the following environment variable in the host machine:

export HTTP_PROXY=http://proxy.xxx:3128
export HTTPS_PROXY=http://proxy.xxx:3128
export NO_PROXY=localhost

Connect to the server with SSH, and create a new project (we will use node.js)

[rukosan] $ mkdir myapp
[rukosan] $ cd myapp
[rukosan] $ git init
[rukosan] $ npm init
[rukosan] $ cat > index.js << EOF
var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello World\n');
}).listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');
EOF

[rukosan] $ cat > Procfile << EOF
web: node index.js
EOF

[rukosan] $ git add -A
[rukosan] $ git commit -m 'fisrt commit'

[rukosan] $ ~/openruko/client/openruko create myapp
# email: [email protected]
# Password: rukosan

[rukosan] $ git push heroku master
[rukosan] $ curl 127.0.0.1:1337

chef-openruko's People

Contributors

filirom1 avatar marsup avatar smaftoul avatar temsa avatar tombh avatar

Watchers

 avatar  avatar  avatar

Forkers

slotbox

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.