This repository has been archived by the owner on Nov 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 55c9be7
Showing
18 changed files
with
777 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
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 |
This file contains 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
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 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--color | ||
--format documentation |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
set wildignore+=*/vagrant-1.1/* |
This file contains 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
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' |
This file contains 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
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 |
This file contains 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
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 |
This file contains 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
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. |
This file contains 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
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 |
This file contains 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
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 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
ip: 10.0.3.100 | ||
forwards: | ||
- - 2222 | ||
- 22 |
Oops, something went wrong.