Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Commit

Permalink
Not so initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
fgrehm committed Feb 25, 2013
0 parents commit 55c9be7
Show file tree
Hide file tree
Showing 18 changed files with 777 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
*.gem
*.rbc
.bundle
.config
coverage
InstalledFiles
lib/bundler/man
pkg
rdoc
spec/reports
test/tmp
test/version_tmp
tmp

# YARD artifacts
.yardoc
_yardoc
doc/

.vagrant
/cache
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "vagrant-1.1"]
path = vagrant-1.1
url = git://github.com/mitchellh/vagrant.git
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--color
--format documentation
1 change: 1 addition & 0 deletions .vimrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
set wildignore+=*/vagrant-1.1/*
14 changes: 14 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
source 'https://rubygems.org'

unless ENV['USER'] == 'vagrant'
puts 'This Gemfile is meant to be used from the dev box'
exit 1
end

gem 'rake'
gem 'net-ssh'
gem 'rspec'
gem 'guard'
gem 'guard-rspec'
gem 'rb-inotify'
gem 'log4r'
50 changes: 50 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
GEM
remote: https://rubygems.org/
specs:
coderay (1.0.8)
diff-lcs (1.1.3)
ffi (1.4.0)
guard (1.6.2)
listen (>= 0.6.0)
lumberjack (>= 1.0.2)
pry (>= 0.9.10)
terminal-table (>= 1.4.3)
thor (>= 0.14.6)
guard-rspec (2.4.0)
guard (>= 1.1)
rspec (~> 2.11)
listen (0.7.2)
log4r (1.1.10)
lumberjack (1.0.2)
method_source (0.8.1)
net-ssh (2.6.5)
pry (0.9.12)
coderay (~> 1.0.5)
method_source (~> 0.8)
slop (~> 3.4)
rake (10.0.3)
rb-inotify (0.8.8)
ffi (>= 0.5.0)
rspec (2.12.0)
rspec-core (~> 2.12.0)
rspec-expectations (~> 2.12.0)
rspec-mocks (~> 2.12.0)
rspec-core (2.12.2)
rspec-expectations (2.12.1)
diff-lcs (~> 1.1.3)
rspec-mocks (2.12.2)
slop (3.4.3)
terminal-table (1.4.5)
thor (0.17.0)

PLATFORMS
ruby

DEPENDENCIES
guard
guard-rspec
log4r
net-ssh
rake
rb-inotify
rspec
10 changes: 10 additions & 0 deletions Guardfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# A sample Guardfile
# More info at https://github.com/guard/guard#readme

raise 'You should start guard from the dev box!' unless ENV['USER'] == 'vagrant'

guard 'rspec' do
watch(%r{^spec/.+_spec\.rb$})
watch('spec/spec_helper.rb') { 'spec' }
watch('lib/provider') { 'spec' }
end
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# vagrant-lxc

Highly experimental Linux Containers support for Vagrant 1.1

## WARNING

Please keep in mind that this is not even alpha software and things might go wrong.
Although I'm brave enough to use it on my physical machine, its recommended that you
try it out on the Vagrant dev box ;)

## Development

On your host:

```terminal
./setup-vagrant-dev-box
vagrant ssh
```

On the guest machine:

```terminal
mkdir /tmp/vagrant-lxc
cp /vagrant/config.yml.sample /tmp/vagrant-lxc/config.yml
cd /tmp/vagrant-lxc
/vagrant/lib/provider up
/vagrant/lib/provider ssh
```

## Troubleshooting

If your container / dev box start acting weird, run `vagrant reload` to see if
things get back to normal.

In case `vagrant reload` doesn't work, restore the VirtualBox snapshot that was
created automagically right after `./setup-vagrant-dev-box` finished by running
the same script again and selecting the `[r]estore snapshot` option when asked.
5 changes: 5 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
raise 'This Rakefile is meant to be used from the dev box' unless ENV['USER'] == 'vagrant'

Dir['./tasks/**/*.rake'].each { |f| load f }

task :default => :spec
19 changes: 19 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant::Config.run do |config|
config.vm.box = "quantal64"
config.vm.box_url = "https://github.com/downloads/roderik/VagrantQuantal64Box/quantal64.box"

config.vm.network :hostonly, "192.168.33.10"
config.vm.forward_port 80, 8080
config.vm.forward_port 2222, 2223

config.vm.customize [
"modifyvm", :id,
"--memory", 1024,
"--cpus", "2"
]

config.vm.share_folder("v-root", "/vagrant", ".", :nfs => true)
end
5 changes: 5 additions & 0 deletions config.yml.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
ip: 10.0.3.100
forwards:
- - 2222
- 22
Loading

0 comments on commit 55c9be7

Please sign in to comment.