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 169eaa5
Showing
13 changed files
with
873 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,5 @@ | ||
*.DS_Store | ||
.bundle | ||
*.box | ||
/iso | ||
/vendor |
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 @@ | ||
source 'https://www.rubygems.org' | ||
gem 'veewee', :git => 'git://github.com/jedi4ever/veewee.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,75 @@ | ||
GIT | ||
remote: git://github.com/jedi4ever/veewee.git | ||
revision: fdd07122b66d460d03a093afef45a32fc94a5595 | ||
specs: | ||
veewee (0.3.7) | ||
ansi (~> 1.3.0) | ||
childprocess | ||
fission (= 0.4.0) | ||
fog (~> 1.8) | ||
grit | ||
highline | ||
i18n | ||
json | ||
net-ssh (>= 2.2.0) | ||
popen4 (~> 0.1.2) | ||
progressbar | ||
ruby-vnc (~> 1.0.0) | ||
thor (~> 0.15) | ||
|
||
GEM | ||
remote: https://www.rubygems.org/ | ||
specs: | ||
CFPropertyList (2.0.17) | ||
libxml-ruby (>= 1.1.0) | ||
rake (>= 0.7.0) | ||
Platform (0.4.0) | ||
ansi (1.3.0) | ||
builder (3.2.2) | ||
childprocess (0.3.9) | ||
ffi (~> 1.0, >= 1.0.11) | ||
diff-lcs (1.2.4) | ||
excon (0.22.1) | ||
ffi (1.8.1) | ||
fission (0.4.0) | ||
CFPropertyList (~> 2.0.17) | ||
fog (1.11.1) | ||
builder | ||
excon (~> 0.20) | ||
formatador (~> 0.2.0) | ||
json (~> 1.7) | ||
mime-types | ||
net-scp (~> 1.1) | ||
net-ssh (>= 2.1.3) | ||
nokogiri (~> 1.5.0) | ||
ruby-hmac | ||
formatador (0.2.4) | ||
grit (2.5.0) | ||
diff-lcs (~> 1.1) | ||
mime-types (~> 1.15) | ||
posix-spawn (~> 0.3.6) | ||
highline (1.6.19) | ||
i18n (0.6.4) | ||
json (1.8.0) | ||
libxml-ruby (2.6.0) | ||
mime-types (1.23) | ||
net-scp (1.1.1) | ||
net-ssh (>= 2.6.5) | ||
net-ssh (2.6.7) | ||
nokogiri (1.5.9) | ||
open4 (1.3.0) | ||
popen4 (0.1.2) | ||
Platform (>= 0.4.0) | ||
open4 (>= 0.4.0) | ||
posix-spawn (0.3.6) | ||
progressbar (0.20.0) | ||
rake (10.0.4) | ||
ruby-hmac (0.4.0) | ||
ruby-vnc (1.0.1) | ||
thor (0.18.1) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
veewee! |
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,31 @@ | ||
BOXES = ['ubuntu-12.04.3-amd64-vbox.box', 'ubuntu-12.04.3-amd64-vmwarefusion.box'] | ||
|
||
desc "Build VirtualBox box & import into Vagrant" | ||
task :virtualbox => 'ubuntu-12.04.3-amd64-vbox.box' do | ||
sh "vagrant box add phusion-ubuntu-12.04-amd64 ubuntu-12.04.3-amd64-vbox.box --force" | ||
end | ||
|
||
desc "Build VirtualBox box" | ||
file 'ubuntu-12.04.3-amd64-vbox.box' => Dir["definitions/ubuntu-12.04.3-amd64-vbox/*"] do | ||
sh "bundle exec veewee vbox build ubuntu-12.04.3-amd64-vbox --force" | ||
sh "bundle exec veewee vbox export ubuntu-12.04.3-amd64-vbox --force" | ||
end | ||
|
||
desc "Build VMWare Fusion box & import into Vagrant" | ||
task :vmware_fusion => 'ubuntu-12.04.3-amd64-vmwarefusion.box' do | ||
sh "vagrant box add phusion-ubuntu-12.04-amd64 ubuntu-12.04.3-amd64-vmwarefusion.box --force" | ||
end | ||
|
||
desc "Build VMWare Fusion box" | ||
file 'ubuntu-12.04.3-amd64-vmwarefusion.box' => Dir["definitions/ubuntu-12.04.3-amd64-vmwarefusion/*"] do | ||
sh "bundle exec veewee fusion build ubuntu-12.04.3-amd64-vmwarefusion --force" | ||
sh "bundle exec veewee fusion export ubuntu-12.04.3-amd64-vmwarefusion --force" | ||
end | ||
|
||
desc "Upload boxes to a public server" | ||
task :upload => BOXES do | ||
BOXES.each do |box| | ||
sh "scp", box, "juvia-helper.phusion.nl:/srv/vagrant-boxes/" | ||
end | ||
sh "md5sum #{BOXES.join(' ')} | ssh juvia-helper.phusion.nl tee /srv/vagrant-boxes/md5sums.txt" | ||
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,21 @@ | ||
set -x | ||
|
||
# Apt-install various things necessary for Ruby, guest additions, | ||
# etc., and remove optional things to trim down the machine. | ||
apt-get -y update | ||
apt-get -y upgrade | ||
apt-get -y install gcc build-essential linux-headers-$(uname -r) | ||
apt-get -y install zlib1g-dev libssl-dev libreadline-gplv2-dev libyaml-dev | ||
apt-get -y install vim curl | ||
apt-get clean | ||
|
||
# Set up sudo | ||
( cat <<'EOP' | ||
%vagrant ALL=NOPASSWD:ALL | ||
EOP | ||
) > /tmp/vagrant | ||
chmod 0440 /tmp/vagrant | ||
mv /tmp/vagrant /etc/sudoers.d/ | ||
|
||
# Install NFS client | ||
apt-get -y install nfs-common |
Oops, something went wrong.