Skip to content

Commit

Permalink
Add Vagrant support
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Álvarez committed Feb 10, 2015
1 parent 327cc7e commit 53a26f3
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -3,3 +3,4 @@
htmlcov/
.cache/
dist/
.vagrant/
22 changes: 22 additions & 0 deletions README.md
Expand Up @@ -37,3 +37,25 @@ To install `cctrl`:
To upgrade `cctrl` (non-windows compatible):

$ (sudo) pip install cctrl --upgrade


Vagrant Support
---------------

This project includes Vagrant support, so you can start an Ubuntu virtual machine
with your local `cctrl` version installed and ready to use. It might be also useful
for Windows users, so they can have a more Unix-like experience.

To start a `cctrl` Vagrant box you need to be inside the project directory and follow
these steps:

$ vagrant up
$ vagrant ssh
$ cctrlapp -h

If you're working on project development and want to update your changes, run:

$ vagrant provision

You can find documentation on Vagrant installation and configuration on their [official
site](http://docs.vagrantup.com/v2/installation/index.html).
15 changes: 15 additions & 0 deletions Vagrantfile
@@ -0,0 +1,15 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.hostname = "cctrl"

config.vm.provision "shell", path: "vagrant.sh"

config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024"]
end
end
9 changes: 9 additions & 0 deletions vagrant.sh
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -eu

apt-get update

DEBIAN_FRONTEND=noninteractive apt-get install -y -q \
python-dev python-pip git

sudo pip install /vagrant

0 comments on commit 53a26f3

Please sign in to comment.