Skip to content

Marsup/vagrant-openruko

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vagrant OpenRuko

This is the easiest way to test OpenRuko.

Install

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

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

Launch tests

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

To launch the test run:

$ ssh vagtrant@localhost -p 2222
[vagrant] $ cd ~/openruko/keepgreen
[vagrant] $ ./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 Vagrant VM with SSH, and create a new project (we will use node.js)

$ ssh vagtrant@localhost -p 2222
[vagrant] $ mkdir myapp
[vagrant] $ cd myapp
[vagrant] $ git init
[vagrant] $ npm init
[vagrant] $ 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

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

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

[vagrant] $ ~/openruko/client/openruko create myapp
# email: openruko@openruko.com
# Password: vagrant

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

About

Vagrant template to create a fully running openruko VM.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages