From 8a8f0c9d392dce1060b5ada0d875b783dd0d365d Mon Sep 17 00:00:00 2001 From: Jean-Sebastien Ney Date: Sun, 26 Aug 2012 22:27:58 +0200 Subject: [PATCH 1/8] use stasis to generate staically --- Gemfile | 4 + Gemfile.lock | 20 ++ Rakefile | 11 + src/controller.rb | 5 + src/data/boxes.yml | 220 ++++++++++++++++++++ src/index.html.erb | 66 ++++++ www/index.html | 501 +++++++++++++++++++++++---------------------- 7 files changed, 577 insertions(+), 250 deletions(-) create mode 100644 Gemfile create mode 100644 Gemfile.lock create mode 100644 Rakefile create mode 100644 src/controller.rb create mode 100644 src/data/boxes.yml create mode 100644 src/index.html.erb diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..1da81a6 --- /dev/null +++ b/Gemfile @@ -0,0 +1,4 @@ +# A sample Gemfile +source "https://rubygems.org" + +gem "stasis" diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..4f8c7c5 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,20 @@ +GEM + remote: https://rubygems.org/ + specs: + directory_watcher (1.4.1) + redis (2.2.2) + slop (2.1.0) + stasis (0.1.23) + directory_watcher (~> 1.4.1) + redis (~> 2.2.2) + slop (~> 2.1.0) + tilt (~> 1.3.3) + yajl-ruby (~> 1.0.0) + tilt (1.3.3) + yajl-ruby (1.0.0) + +PLATFORMS + ruby + +DEPENDENCIES + stasis diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..e0e4ec7 --- /dev/null +++ b/Rakefile @@ -0,0 +1,11 @@ +require 'rake' +require 'stasis' + +task :default => [:render] + +desc 'Render the static site through `statis`' +task :render do + puts 'rendering static file' + stasis = Stasis.new('src', '../www') + stasis.render('index.html.erb') +end diff --git a/src/controller.rb b/src/controller.rb new file mode 100644 index 0000000..9d48770 --- /dev/null +++ b/src/controller.rb @@ -0,0 +1,5 @@ +require 'yaml' + +before 'index.html.erb' do + @boxes = YAML.load_file('data/boxes.yml') +end diff --git a/src/data/boxes.yml b/src/data/boxes.yml new file mode 100644 index 0000000..e977cc1 --- /dev/null +++ b/src/data/boxes.yml @@ -0,0 +1,220 @@ +- + :name: CentOS 6.3 x86_64 minimal + :url: https://dl.dropbox.com/u/7225008/Vagrant/CentOS-6.3-x86_64-minimal.box + :size: 310MB + +- + :name: OmniOS (r151002) + :url: http://omnios.omniti.com/media/omnios-latest.box + :size: 837MB + +- + :name: Arch Linux 64 (2012-07-02) + :url: http://vagrant.pouss.in/archlinux_2012-07-02.box + :size: 283MB + +- + :name: Ubuntu 11.04 server i386 + :url: http://dl.dropbox.com/u/7490647/talifun-ubuntu-11.04-server-i386.box + :size: 372MB + +- + :name: Ubuntu 11.04 server amd64 + :url: http://dl.dropbox.com/u/7490647/talifun-ubuntu-11.04-server-amd64.box + :size: 390MB + +- + :name: OpenSUSE 12.1 64 puppet (until 2012-12-17) + :url: https://transfert.inria.fr/fichiers/42187e68fc6312db6856f07e651cd475/vagrant-opensuse-121-64.box + :size: 500MB + +- + :name: Scientific Linux 6 64 chefclient0.10 + :url: http://download.frameos.org/sl6-64-chefclient-0.10.box + :size: 459MB + +- + :name: Scientific Linux 6 64 chefserver-0.10 + :url: http://download.frameos.org/sl6-64-chefserver-0.10.box + :size: 657MB + +- + :name: CentOS 5.6 32 + :url: http://yum.mnxsolutions.com/vagrant/centos_56_32.box + :size: 804MB + +- + :name: Debian Lenny 32 puppet + :url: http://s3-eu-west-1.amazonaws.com/glassesdirect-boxen/Debian/Debian_Lenny_32_puppet_backport.box + :size: 345MB + +- + :name: Debian Lenny 32 + :url: https://s3-eu-west-1.amazonaws.com/glassesdirect-boxen/Debian/Debian_Lenny_32.box + :size: 351MB + +- + :name: Debian Lenny 64 puppet + :url: http://puppetlabs.s3.amazonaws.com/pub/Debian_Lenny_64.box + :size: 386MB + +- + :name: Debian Squeeze 64 rvm + :url: https://s3-eu-west-1.amazonaws.com/rosstimson-vagrant-boxes/Debian-Squeeze-64-rvm.box + :size: + +- + :name: Debian Squeeze 64 + :url: http://puppetlabs.s3.amazonaws.com/pub/Squeeze64.box + :size: 540MB + +- + :name: RHEL 6 64 puppet + :url: http://puppetlabs.s3.amazonaws.com/pub/rhel60_64.box + :size: 576MB + +- + :name: CentOS 4 64 puppet + :url: http://puppetlabs.s3.amazonaws.com/pub/centos4_64.box + :size: 540MB + +- + :name: SLES 11sp1 64 puppet + :url: http://puppetlabs.s3.amazonaws.com/pub/sles11sp1_64.box + :size: 665MB + +- + :name: Ubuntu 11.10 server amd64 + :url: http://timhuegdon.com/vagrant-boxes/Ubuntu-11.10.box + :size: 390MB + +- + :name: Aegir-up Aegir (Debian Stable 64-bit) + :url: http://ergonlogic.com/files/boxes/aegir-current.box + :size: 297MB + +- + :name: Aegir-up LAMP (Debian Stable 64-bit) + :url: http://ergonlogic.com/files/boxes/debian-LAMP-current.box + :size: 388MB + +- + :name: Aegir-up Debian (Stable 64-bit) + :url: http://ergonlogic.com/files/boxes/debian-current.box + :size: 283MB + +- + :name: OpenBSD 5.0 (i386) + :url: https://s3-eu-west-1.amazonaws.com/rosstimson-vagrant-boxes/openbsd50-i386.box + :size: 211MB + +- + :name: Ubuntu Oneiric 32 + :url: http://vagrant.cedric-ziel.com/oneiric32.box + :size: 340MB + +- + :name: CentOS 5.7 64 + :url: http://dl.dropbox.com/u/8072848/centos-5.7-x86_64.box + :size: 521MB + +- + :name: CentOS 5.6 64 puppet + :url: http://puppetlabs.s3.amazonaws.com/pub/centos56_64.box + :size: 614MB + +- + :name: Minimal CentOS 6.0 + :url: http://dl.dropbox.com/u/9227672/CentOS-6.0-x86_64-netboot-4.1.6.box + :size: 362MB + +- + :name: Minimal CentOS 5.6 + :url: http://dl.dropbox.com/u/9227672/centos-5.6-x86_64-netinstall-4.1.6.box + :size: 277MB + +- + :name: Archlinux 2011-08-19 + :url: http://sourceforge.net/projects/vagrantarchlinx/files/files2011.08.19/archlinux_2011.08.19.box/download + :size: 565MB + +- + :name: CentOS 6 + :url: https://vagrant-centos-6.s3.amazonaws.com/centos-6.box + :size: 582MB + +- + :name: Archlinux 2011.08.19 - 64 + :url: http://ftp.heanet.ie/mirrors/sourceforge/v/project/va/vagrantarchlinx/2011.08.19/archlinux_2011.08.19.box + :size: 539MB + +- + :name: Gentoo 64 + :url: http://dl.dropbox.com/u/4270274/gentoo64-0.7.box + :size: 735MB + +- + :name: Opscode ubuntu 10.04 + :url: http://opscode-vagrant-boxes.s3.amazonaws.com/ubuntu10.04-gems.box + :size: 367MB + +- + :name: Opscode centos 5 + :url: http://opscode-vagrant-boxes.s3.amazonaws.com/centos5-gems.box + :size: 458MB + +- + :name: Ubuntu Maverick 64 + :url: http://mathie-vagrant-boxes.s3.amazonaws.com/maverick64.box + :size: 515MB + +- + :name: CentOS 5.5 64 + :url: http://dl.dropbox.com/u/15307300/vagrant-0.7-centos-64-base.box + :size: 499MB + +- + :name: Debian squeeze 32 + :url: http://mathie-vagrant-boxes.s3.amazonaws.com/debian_squeeze_32.box + :size: 397MB + +- + :name: Debian squeeze 64 + :url: http://dl.dropbox.com/u/937870/VMs/squeeze64.box + :size: 264MB + +- + :name: Ubuntu lucid 32 + :url: http://files.vagrantup.com/lucid32.box + :size: 261MB + +- + :name: Ubuntu lucid 64 + :url: http://files.vagrantup.com/lucid64.box + :size: 280MB + +- + :name: Slackware 13.37 + :url: http://dl.dropbox.com/u/10544201/slackware-13.37.box + :size: 2.2GB + +- + :name: Ubuntu precise 32 + :url: http://files.vagrantup.com/precise32.box + :size: 299MB + +- + :name: Ubuntu precise 64 + :url: http://files.vagrantup.com/precise64.box + :size: 323MB + +- + :name: openSuse 12.1 x64 + :url: https://github.com/jtperry/OpenSuseVagrantBox + :size: 665MB + +- + :name: CentOS 5.8 x86_64 + :url: http://putitinthepizza.com/boxes/centos58-x86_64.box + :size: 995MB + diff --git a/src/index.html.erb b/src/index.html.erb new file mode 100644 index 0000000..cab1ab2 --- /dev/null +++ b/src/index.html.erb @@ -0,0 +1,66 @@ + + + + +A list of base boxes for Vagrant - Vagrantbox.es + + + + + +Fork me on GitHub + +
+ +

Vagrantbox.es

+ +

Vagrant is an amazing tool for managing virtual machines via a simple to use command line interface. With a simple vagrant up you can be working in a clean environment based on a standard template.

+ +

These standard templates are called base boxes, and this website is simply a list of boxes people have been nice enough to make publicly available.

+ +

Suggest a Box

+ +

Do you know of another base box? Send a pull request and we'll add it to the list below.

+ +

Available Boxes

+ +

To use the available boxes just replace {title} and {url} with the information in the table below.

+ +
+ $ gem install vagrant
+ $ vagrant box add {title} {url}
+ $ vagrant init {title}
+ $ vagrant up
+  
+ +

The list of boxes has been checked on 17th July 2012.

+ + + <% @boxes.each do |box| %> + + + + + + <% end %> +
<%= box[:name] %><%= box[:url] %><%= box[:size] %>
+ + + +
+ + + diff --git a/www/index.html b/www/index.html index 7734f9b..c2c0c9c 100644 --- a/www/index.html +++ b/www/index.html @@ -1,20 +1,9 @@ + - - A list of base boxes for Vagrant - Vagrantbox.es - - + +A list of base boxes for Vagrant - Vagrantbox.es + @@ -23,256 +12,268 @@
-

Vagrantbox.es

+

Vagrantbox.es

-

Vagrant is an amazing tool for managing virtual machines via a simple to use command line interface. With a simple vagrant up you can be working in a clean environment based on a standard template.

+

Vagrant is an amazing tool for managing virtual machines via a simple to use command line interface. With a simple vagrant up you can be working in a clean environment based on a standard template.

-

These standard templates are called base boxes, and this website is simply a list of boxes people have been nice enough to make publicly available.

+

These standard templates are called base boxes, and this website is simply a list of boxes people have been nice enough to make publicly available.

-

Suggest a Box

+

Suggest a Box

-

Do you know of another base box? Send a pull request and we'll add it to the list below.

+

Do you know of another base box? Send a pull request and we'll add it to the list below.

-

Available Boxes

+

Available Boxes

-

To use the available boxes just replace {title} and {url} with the information in the table below.

+

To use the available boxes just replace {title} and {url} with the information in the table below.

-
+  
  $ gem install vagrant
  $ vagrant box add {title} {url}
  $ vagrant init {title}
  $ vagrant up
-
+
-

The list of boxes has been checked on 17th July 2012.

+

The list of boxes has been checked on 17th July 2012.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CentOS 6.3 x86_64 minimalhttps://dl.dropbox.com/u/7225008/Vagrant/CentOS-6.3-x86_64-minimal.box310MB
OmniOS (r151002)http://omnios.omniti.com/media/omnios-latest.box837MB
Arch Linux 64 (2012-07-02)http://vagrant.pouss.in/archlinux_2012-07-02.box283MB
Ubuntu 11.04 server i386http://dl.dropbox.com/u/7490647/talifun-ubuntu-11.04-server-i386.box372MB
Ubuntu 11.04 server amd64http://dl.dropbox.com/u/7490647/talifun-ubuntu-11.04-server-amd64.box390MB
OpenSUSE 12.1 64 puppet (until 2012-12-17)https://transfert.inria.fr/fichiers/42187e68fc6312db6856f07e651cd475/vagrant-opensuse-121-64.box500MB
Scientific Linux 6 64 chefclient0.10http://download.frameos.org/sl6-64-chefclient-0.10.box459MB
Scientific Linux 6 64 chefserver-0.10http://download.frameos.org/sl6-64-chefserver-0.10.box657MB
CentOS 5.6 32http://yum.mnxsolutions.com/vagrant/centos_56_32.box804MB
Debian Lenny 32 puppethttp://s3-eu-west-1.amazonaws.com/glassesdirect-boxen/Debian/Debian_Lenny_32_puppet_backport.box345MB
Debian Lenny 32https://s3-eu-west-1.amazonaws.com/glassesdirect-boxen/Debian/Debian_Lenny_32.box351MB
Debian Lenny 64 puppethttp://puppetlabs.s3.amazonaws.com/pub/Debian_Lenny_64.box386MB
Debian Squeeze 64 rvmhttps://s3-eu-west-1.amazonaws.com/rosstimson-vagrant-boxes/Debian-Squeeze-64-rvm.box
Debian Squeeze 64http://puppetlabs.s3.amazonaws.com/pub/Squeeze64.box540MB
RHEL 6 64 puppethttp://puppetlabs.s3.amazonaws.com/pub/rhel60_64.box576MB
CentOS 4 64 puppethttp://puppetlabs.s3.amazonaws.com/pub/centos4_64.box540MB
SLES 11sp1 64 puppethttp://puppetlabs.s3.amazonaws.com/pub/sles11sp1_64.box665MB
Ubuntu 11.10 server amd64http://timhuegdon.com/vagrant-boxes/Ubuntu-11.10.box390MB
Aegir-up Aegir (Debian Stable 64-bit)http://ergonlogic.com/files/boxes/aegir-current.box297MB
Aegir-up LAMP (Debian Stable 64-bit)http://ergonlogic.com/files/boxes/debian-LAMP-current.box388MB
Aegir-up Debian (Stable 64-bit)http://ergonlogic.com/files/boxes/debian-current.box283MB
OpenBSD 5.0 (i386)https://s3-eu-west-1.amazonaws.com/rosstimson-vagrant-boxes/openbsd50-i386.box211MB
Ubuntu Oneiric 32http://vagrant.cedric-ziel.com/oneiric32.box340MB
CentOS 5.7 64http://dl.dropbox.com/u/8072848/centos-5.7-x86_64.box521MB
CentOS 5.6 64 puppethttp://puppetlabs.s3.amazonaws.com/pub/centos56_64.box614MB
Minimal CentOS 6.0http://dl.dropbox.com/u/9227672/CentOS-6.0-x86_64-netboot-4.1.6.box362MB
Minimal CentOS 5.6http://dl.dropbox.com/u/9227672/centos-5.6-x86_64-netinstall-4.1.6.box277MB
Archlinux 2011-08-19http://sourceforge.net/projects/vagrantarchlinx/files/files2011.08.19/archlinux_2011.08.19.box/download565MB
CentOS 6https://vagrant-centos-6.s3.amazonaws.com/centos-6.box582MB
Archlinux 2011.08.19 - 64http://ftp.heanet.ie/mirrors/sourceforge/v/project/va/vagrantarchlinx/2011.08.19/archlinux_2011.08.19.box539MB
Gentoo 64http://dl.dropbox.com/u/4270274/gentoo64-0.7.box735MB
Opscode ubuntu 10.04http://opscode-vagrant-boxes.s3.amazonaws.com/ubuntu10.04-gems.box367MB
Opscode centos 5http://opscode-vagrant-boxes.s3.amazonaws.com/centos5-gems.box458MB
Ubuntu Maverick 64http://mathie-vagrant-boxes.s3.amazonaws.com/maverick64.box515MB
CentOS 5.5 64http://dl.dropbox.com/u/15307300/vagrant-0.7-centos-64-base.box499MB
Debian squeeze 32http://mathie-vagrant-boxes.s3.amazonaws.com/debian_squeeze_32.box397MB
Debian squeeze 64http://dl.dropbox.com/u/937870/VMs/squeeze64.box264MB
Ubuntu lucid 32http://files.vagrantup.com/lucid32.box261MB
Ubuntu lucid 64http://files.vagrantup.com/lucid64.box280MB
Slackware 13.37http://dl.dropbox.com/u/10544201/slackware-13.37.box2.2GB
Ubuntu precise 32http://files.vagrantup.com/precise32.box299MB
Ubuntu precise 64http://files.vagrantup.com/precise64.box323MB
openSuse 12.1 x64https://github.com/jtperry/OpenSuseVagrantBox665MB
CentOS 5.8 x86_64http://putitinthepizza.com/boxes/centos58-x86_64.box995MB
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CentOS 6.3 x86_64 minimalhttps://dl.dropbox.com/u/7225008/Vagrant/CentOS-6.3-x86_64-minimal.box310MB
OmniOS (r151002)http://omnios.omniti.com/media/omnios-latest.box837MB
Arch Linux 64 (2012-07-02)http://vagrant.pouss.in/archlinux_2012-07-02.box283MB
Ubuntu 11.04 server i386http://dl.dropbox.com/u/7490647/talifun-ubuntu-11.04-server-i386.box372MB
Ubuntu 11.04 server amd64http://dl.dropbox.com/u/7490647/talifun-ubuntu-11.04-server-amd64.box390MB
OpenSUSE 12.1 64 puppet (until 2012-12-17)https://transfert.inria.fr/fichiers/42187e68fc6312db6856f07e651cd475/vagrant-opensuse-121-64.box500MB
Scientific Linux 6 64 chefclient0.10http://download.frameos.org/sl6-64-chefclient-0.10.box459MB
Scientific Linux 6 64 chefserver-0.10http://download.frameos.org/sl6-64-chefserver-0.10.box657MB
CentOS 5.6 32http://yum.mnxsolutions.com/vagrant/centos_56_32.box804MB
Debian Lenny 32 puppethttp://s3-eu-west-1.amazonaws.com/glassesdirect-boxen/Debian/Debian_Lenny_32_puppet_backport.box345MB
Debian Lenny 32https://s3-eu-west-1.amazonaws.com/glassesdirect-boxen/Debian/Debian_Lenny_32.box351MB
Debian Lenny 64 puppethttp://puppetlabs.s3.amazonaws.com/pub/Debian_Lenny_64.box386MB
Debian Squeeze 64 rvmhttps://s3-eu-west-1.amazonaws.com/rosstimson-vagrant-boxes/Debian-Squeeze-64-rvm.box
Debian Squeeze 64http://puppetlabs.s3.amazonaws.com/pub/Squeeze64.box540MB
RHEL 6 64 puppethttp://puppetlabs.s3.amazonaws.com/pub/rhel60_64.box576MB
CentOS 4 64 puppethttp://puppetlabs.s3.amazonaws.com/pub/centos4_64.box540MB
SLES 11sp1 64 puppethttp://puppetlabs.s3.amazonaws.com/pub/sles11sp1_64.box665MB
Ubuntu 11.10 server amd64http://timhuegdon.com/vagrant-boxes/Ubuntu-11.10.box390MB
Aegir-up Aegir (Debian Stable 64-bit)http://ergonlogic.com/files/boxes/aegir-current.box297MB
Aegir-up LAMP (Debian Stable 64-bit)http://ergonlogic.com/files/boxes/debian-LAMP-current.box388MB
Aegir-up Debian (Stable 64-bit)http://ergonlogic.com/files/boxes/debian-current.box283MB
OpenBSD 5.0 (i386)https://s3-eu-west-1.amazonaws.com/rosstimson-vagrant-boxes/openbsd50-i386.box211MB
Ubuntu Oneiric 32http://vagrant.cedric-ziel.com/oneiric32.box340MB
CentOS 5.7 64http://dl.dropbox.com/u/8072848/centos-5.7-x86_64.box521MB
CentOS 5.6 64 puppethttp://puppetlabs.s3.amazonaws.com/pub/centos56_64.box614MB
Minimal CentOS 6.0http://dl.dropbox.com/u/9227672/CentOS-6.0-x86_64-netboot-4.1.6.box362MB
Minimal CentOS 5.6http://dl.dropbox.com/u/9227672/centos-5.6-x86_64-netinstall-4.1.6.box277MB
Archlinux 2011-08-19http://sourceforge.net/projects/vagrantarchlinx/files/files2011.08.19/archlinux_2011.08.19.box/download565MB
CentOS 6https://vagrant-centos-6.s3.amazonaws.com/centos-6.box582MB
Archlinux 2011.08.19 - 64http://ftp.heanet.ie/mirrors/sourceforge/v/project/va/vagrantarchlinx/2011.08.19/archlinux_2011.08.19.box539MB
Gentoo 64http://dl.dropbox.com/u/4270274/gentoo64-0.7.box735MB
Opscode ubuntu 10.04http://opscode-vagrant-boxes.s3.amazonaws.com/ubuntu10.04-gems.box367MB
Opscode centos 5http://opscode-vagrant-boxes.s3.amazonaws.com/centos5-gems.box458MB
Ubuntu Maverick 64http://mathie-vagrant-boxes.s3.amazonaws.com/maverick64.box515MB
CentOS 5.5 64http://dl.dropbox.com/u/15307300/vagrant-0.7-centos-64-base.box499MB
Debian squeeze 32http://mathie-vagrant-boxes.s3.amazonaws.com/debian_squeeze_32.box397MB
Debian squeeze 64http://dl.dropbox.com/u/937870/VMs/squeeze64.box264MB
Ubuntu lucid 32http://files.vagrantup.com/lucid32.box261MB
Ubuntu lucid 64http://files.vagrantup.com/lucid64.box280MB
Slackware 13.37http://dl.dropbox.com/u/10544201/slackware-13.37.box2.2GB
Ubuntu precise 32http://files.vagrantup.com/precise32.box299MB
Ubuntu precise 64http://files.vagrantup.com/precise64.box323MB
openSuse 12.1 x64https://github.com/jtperry/OpenSuseVagrantBox665MB
CentOS 5.8 x86_64http://putitinthepizza.com/boxes/centos58-x86_64.box995MB
- +
+ + From 1a72cc8246ed37ade9be2fccb71f9c82a92f06cf Mon Sep 17 00:00:00 2001 From: Jean-Sebastien Ney Date: Mon, 27 Aug 2012 13:04:41 +0200 Subject: [PATCH 2/8] ignoring sass cache --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0d31019 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.sass-cache/ From d14764934c6ad88c4533d5dbf71587d3de9b3d0a Mon Sep 17 00:00:00 2001 From: Jean-Sebastien Ney Date: Mon, 27 Aug 2012 13:05:32 +0200 Subject: [PATCH 3/8] adding type directly to the box --- src/data/boxes.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/src/data/boxes.yml b/src/data/boxes.yml index e977cc1..b136148 100644 --- a/src/data/boxes.yml +++ b/src/data/boxes.yml @@ -2,219 +2,263 @@ :name: CentOS 6.3 x86_64 minimal :url: https://dl.dropbox.com/u/7225008/Vagrant/CentOS-6.3-x86_64-minimal.box :size: 310MB + :type: centos - :name: OmniOS (r151002) :url: http://omnios.omniti.com/media/omnios-latest.box :size: 837MB + :type: omnios - :name: Arch Linux 64 (2012-07-02) :url: http://vagrant.pouss.in/archlinux_2012-07-02.box :size: 283MB + :type: arch - :name: Ubuntu 11.04 server i386 :url: http://dl.dropbox.com/u/7490647/talifun-ubuntu-11.04-server-i386.box :size: 372MB + :type: ubuntu - :name: Ubuntu 11.04 server amd64 :url: http://dl.dropbox.com/u/7490647/talifun-ubuntu-11.04-server-amd64.box :size: 390MB + :type: ubuntu - :name: OpenSUSE 12.1 64 puppet (until 2012-12-17) :url: https://transfert.inria.fr/fichiers/42187e68fc6312db6856f07e651cd475/vagrant-opensuse-121-64.box :size: 500MB + :type: suse - :name: Scientific Linux 6 64 chefclient0.10 :url: http://download.frameos.org/sl6-64-chefclient-0.10.box :size: 459MB + :type: sl - :name: Scientific Linux 6 64 chefserver-0.10 :url: http://download.frameos.org/sl6-64-chefserver-0.10.box :size: 657MB + :type: sl - :name: CentOS 5.6 32 :url: http://yum.mnxsolutions.com/vagrant/centos_56_32.box :size: 804MB + :type: centos - :name: Debian Lenny 32 puppet :url: http://s3-eu-west-1.amazonaws.com/glassesdirect-boxen/Debian/Debian_Lenny_32_puppet_backport.box :size: 345MB + :type: debian - :name: Debian Lenny 32 :url: https://s3-eu-west-1.amazonaws.com/glassesdirect-boxen/Debian/Debian_Lenny_32.box :size: 351MB + :type: debian - :name: Debian Lenny 64 puppet :url: http://puppetlabs.s3.amazonaws.com/pub/Debian_Lenny_64.box :size: 386MB + :type: debian - :name: Debian Squeeze 64 rvm :url: https://s3-eu-west-1.amazonaws.com/rosstimson-vagrant-boxes/Debian-Squeeze-64-rvm.box :size: + :type: debian - :name: Debian Squeeze 64 :url: http://puppetlabs.s3.amazonaws.com/pub/Squeeze64.box :size: 540MB + :type: debian - :name: RHEL 6 64 puppet :url: http://puppetlabs.s3.amazonaws.com/pub/rhel60_64.box :size: 576MB + :type: redhat - :name: CentOS 4 64 puppet :url: http://puppetlabs.s3.amazonaws.com/pub/centos4_64.box :size: 540MB + :type: centos - :name: SLES 11sp1 64 puppet :url: http://puppetlabs.s3.amazonaws.com/pub/sles11sp1_64.box :size: 665MB + :type: suse - :name: Ubuntu 11.10 server amd64 :url: http://timhuegdon.com/vagrant-boxes/Ubuntu-11.10.box :size: 390MB + :type: ubuntu - :name: Aegir-up Aegir (Debian Stable 64-bit) :url: http://ergonlogic.com/files/boxes/aegir-current.box :size: 297MB + :type: debian - :name: Aegir-up LAMP (Debian Stable 64-bit) :url: http://ergonlogic.com/files/boxes/debian-LAMP-current.box :size: 388MB + :type: debian - :name: Aegir-up Debian (Stable 64-bit) :url: http://ergonlogic.com/files/boxes/debian-current.box :size: 283MB + :type: debian - :name: OpenBSD 5.0 (i386) :url: https://s3-eu-west-1.amazonaws.com/rosstimson-vagrant-boxes/openbsd50-i386.box :size: 211MB + :type: openbsd - :name: Ubuntu Oneiric 32 :url: http://vagrant.cedric-ziel.com/oneiric32.box :size: 340MB + :type: ubuntu - :name: CentOS 5.7 64 :url: http://dl.dropbox.com/u/8072848/centos-5.7-x86_64.box :size: 521MB + :type: centos - :name: CentOS 5.6 64 puppet :url: http://puppetlabs.s3.amazonaws.com/pub/centos56_64.box :size: 614MB + :type: centos - :name: Minimal CentOS 6.0 :url: http://dl.dropbox.com/u/9227672/CentOS-6.0-x86_64-netboot-4.1.6.box :size: 362MB + :type: centos - :name: Minimal CentOS 5.6 :url: http://dl.dropbox.com/u/9227672/centos-5.6-x86_64-netinstall-4.1.6.box :size: 277MB + :type: centos - :name: Archlinux 2011-08-19 :url: http://sourceforge.net/projects/vagrantarchlinx/files/files2011.08.19/archlinux_2011.08.19.box/download :size: 565MB + :type: arch - :name: CentOS 6 :url: https://vagrant-centos-6.s3.amazonaws.com/centos-6.box :size: 582MB + :type: centos - :name: Archlinux 2011.08.19 - 64 :url: http://ftp.heanet.ie/mirrors/sourceforge/v/project/va/vagrantarchlinx/2011.08.19/archlinux_2011.08.19.box :size: 539MB + :type: arch - :name: Gentoo 64 :url: http://dl.dropbox.com/u/4270274/gentoo64-0.7.box :size: 735MB + :type: gentoo - :name: Opscode ubuntu 10.04 :url: http://opscode-vagrant-boxes.s3.amazonaws.com/ubuntu10.04-gems.box :size: 367MB + :type: ubuntu - :name: Opscode centos 5 :url: http://opscode-vagrant-boxes.s3.amazonaws.com/centos5-gems.box :size: 458MB + :type: centos - :name: Ubuntu Maverick 64 :url: http://mathie-vagrant-boxes.s3.amazonaws.com/maverick64.box :size: 515MB + :type: ubuntu - :name: CentOS 5.5 64 :url: http://dl.dropbox.com/u/15307300/vagrant-0.7-centos-64-base.box :size: 499MB + :type: centos - :name: Debian squeeze 32 :url: http://mathie-vagrant-boxes.s3.amazonaws.com/debian_squeeze_32.box :size: 397MB + :type: debian - :name: Debian squeeze 64 :url: http://dl.dropbox.com/u/937870/VMs/squeeze64.box :size: 264MB + :type: debian - :name: Ubuntu lucid 32 :url: http://files.vagrantup.com/lucid32.box :size: 261MB + :type: ubuntu - :name: Ubuntu lucid 64 :url: http://files.vagrantup.com/lucid64.box :size: 280MB + :type: ubuntu - :name: Slackware 13.37 :url: http://dl.dropbox.com/u/10544201/slackware-13.37.box :size: 2.2GB + :type: slackware - :name: Ubuntu precise 32 :url: http://files.vagrantup.com/precise32.box :size: 299MB + :type: ubuntu - :name: Ubuntu precise 64 :url: http://files.vagrantup.com/precise64.box :size: 323MB + :type: ubuntu - :name: openSuse 12.1 x64 :url: https://github.com/jtperry/OpenSuseVagrantBox :size: 665MB + :type: suse - :name: CentOS 5.8 x86_64 :url: http://putitinthepizza.com/boxes/centos58-x86_64.box :size: 995MB + :type: centos From e652f717040087ec5971893792a384cdff8c8587 Mon Sep 17 00:00:00 2001 From: Jean-Sebastien Ney Date: Mon, 27 Aug 2012 13:06:28 +0200 Subject: [PATCH 4/8] new assets organisation --- src/css/main.css.scss | 181 ++++++++++++++++++++++++++++++++++++++++ src/js/main.js | 76 +++++++++++++++++ www/assets/css/main.css | 1 - www/css/main.css | 146 ++++++++++++++++++++++++++++++++ www/js/main.js | 76 +++++++++++++++++ 5 files changed, 479 insertions(+), 1 deletion(-) create mode 100644 src/css/main.css.scss create mode 100644 src/js/main.js delete mode 100644 www/assets/css/main.css create mode 100644 www/css/main.css create mode 100644 www/js/main.js diff --git a/src/css/main.css.scss b/src/css/main.css.scss new file mode 100644 index 0000000..340525f --- /dev/null +++ b/src/css/main.css.scss @@ -0,0 +1,181 @@ +html { + color: #000; + background: #FFF; } + +body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td { + margin: 0; + padding: 0; } + +fieldset, img { + border: 0; } + +address, caption, cite, code, dfn, em, strong, th, var { + font-style: normal; + font-weight: normal; } + +#boxes { + li { + background: #F8F8F8; + background-position: 10px center; + background-repeat: no-repeat; + background-size: 20px 20px; + border: #ddd 1px solid; + border-bottom: none; + list-style: none; + padding: 1.6em 1.6em 1.6em 40px;; + + &:last-child { + border-bottom: #ddd 1px solid; + } + + &:hover { + background-color: #efefef; + cursor: pointer; + } + + .name { + font-weight: bold; + } + + .size { + color: #999; + font-size: .9em; + margin-left: .5em; + } + } + + .arch { + background-image: url(http://www.archlinux.org/static/favicon.ico); + } + + .centos { + background-image: url(https://www.centos.org/favicon.ico); + } + + .debian { + background-image: url(http://www.debian.org/favicon.ico); + } + + .gentoo { + background-image: url(http://www.gentoo.org/favicon.ico); + } + + .omnios { + background-image: url(http://omnios.omniti.com/favicon.ico); + } + + .openbsd { + background-image: url(http://www.openbsd.org/favicon.ico); + } + + .redhat { + background-image: url(http://www.redhat.com/favicon.ico); + } + + .sl { + background-image: url(https://www.scientificlinux.org/favicon.ico); + } + + .slackware { + background-image: url(http://www.slackware.com/favicon.ico); + } + + .suse { + background-image: url(http://www.opensuse.org/favicon.ico); + } + + .ubuntu { + background-image: url(http://www.ubuntu.com/sites/all/themes/ubuntu10/favicon.ico); + } + +} + +h1, h2, h3, h4, h5, h6 { + font-size: 100%; + font-weight: normal; } + +body { + font: 16px / 1.6 Helvetica,Arial,Verdana,sans-serif; + *font-size: small; + *font: x-small; + color: #444; + background: #fff; } + +pre, code, kbd, samp, tt { + font-family: monospace; + *font-size: 108%; + line-height: 100%; } + +h1 { + color: #000; + font-weight: bold; + font-size: 55px; + letter-spacing: -1px; + border-bottom: 1px solid #ddd; + a { + color: #000; + &:hover, &:focus { + text-decoration: none; } } } + +h2 { + color: #000; + font-family: Georgia,'bitstream vera serif',Times,serif; + font-size: 160%; } + +a { + color: #06a; + text-decoration: none; + &:hover, &:focus { + text-decoration: underline; } } + +#main { + margin: 20px 40px; } + +#footer { + margin-top: 30px; + p { + font-size: 80%; } } + +p { + margin: .5em 0 .75em; } + +code { + color: #c30; + font-family: Monaco,Consolas,monospace; + font-size: 90%; } + +pre { + background: #f8f8f8; + color: #000; + border: 1px solid #ddd; + font-family: Monaco,Consolas,monospace; + font-size: 90%; + padding: 1em; + line-height: 150%; + margin-bottom: 20px; + span { + color: teal; } } + +form { + margin: 20px 0; + background: #f8f8f8; + border: 1px solid #ddd; + padding: 20px; + p { + margin-bottom: 10px; + span { + display: block; + font-size: 80%; + margin-left: 75px; + color: #888; } + label { + position: absolute; } + textarea, input { + margin-left: 100px; + border: 1px solid #ddd; + width: 500px; + padding: 3px; } + textarea { + margin-bottom: -5px; + height: 100px; } } } + diff --git a/src/js/main.js b/src/js/main.js new file mode 100644 index 0000000..50d7ff2 --- /dev/null +++ b/src/js/main.js @@ -0,0 +1,76 @@ +var boxes = document.getElementById("boxes").getElementsByTagName("li"), i; + +for (i=0; i < boxes.length; i++){ + var box = boxes[i]; + var url = box.getElementsByTagName('span')[1]; + + hide(url); + event(box, "click", showUrl(box)); + event(url, "blur", hideUrl(box)); +} + +function event(el, ev, fn) { + if (el.addEventListener) { + el.addEventListener(ev, fn, false); + } else if (el.attachEvent) { + el.attachEvent (ev, fn); + } else { + el['on' + ev] = fn; + } +} + +function hide(el) { + el.style.display = "none"; +} + +function hideUrl(el) { + var spans = el.getElementsByTagName('span'); + var name = spans[0]; + var url = spans[1]; + var size = spans[2]; + return function () { + if (el.isOpen === true) { + el.isOpen = false; + show(name); + hide(url); + show(size); + } + }; +} + +function selectText(el) { + var sel, range; + if (window.getSelection && document.createRange) { + range = document.createRange(); + range.selectNodeContents(el); + sel = window.getSelection(); + sel.removeAllRanges(); + sel.addRange(range); + } else if (document.body.createTextRange) { + range = document.body.createTextRange(); + range.moveToElementText(el); + range.select(); + } +} + +function show(el) { + el.style.display = ""; +} + +function showUrl(el) { + var spans = el.getElementsByTagName('span'); + var name = spans[0]; + var url = spans[1]; + var size = spans[2]; + return function () { + if (el.isOpen !== true) { + el.isOpen = true; + hide(name); + show(url); + url.contentEditable = true; + selectText(url); + hide(size); + } + }; +} + diff --git a/www/assets/css/main.css b/www/assets/css/main.css deleted file mode 100644 index dd81854..0000000 --- a/www/assets/css/main.css +++ /dev/null @@ -1 +0,0 @@ -html{color:#000;background:#FFF}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0}table{border-collapse:collapse;border-spacing:0}fieldset,img{border:0}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal}li{list-style:none}caption,th{text-align:left}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}q:before,q:after{content:''}abbr,acronym{border:0;font-variant:normal}sup{vertical-align:text-top}sub{vertical-align:text-bottom}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit}input,textarea,select{*font-size:100%}legend{color:#000}body{font:13px/1.231 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small}table{font-size:inherit;font:100%}pre,code,kbd,samp,tt{font-family:monospace;*font-size:108%;line-height:100%}body{color:#444;font-family:Helvetica,Arial,Verdana,sans-serif;font-size:16px;line-height:1.6;background:#fff}h1{color:#000;font-weight:bold;font-size:55px;letter-spacing:-1px;border-bottom:1px solid #ddd}h1 a{color:#000}h1 a:hover{text-decoration:none}h1 a:focus{text-decoration:none}h2{color:#000;font-family:Georgia,'bitstream vera serif',Times,serif;font-size:160%}a{color:#06a;text-decoration:none}a:hover{text-decoration:underline}a:focus{text-decoration:underline}#main{margin:20px 40px}#footer{margin-top:30px}#footer p{font-size:80%}p{margin:.5em 0 .75em}code{color:#c30;font-family:Monaco,Consolas,monospace;font-size:90%}pre{background:#f8f8f8;color:#000;border:1px solid #ddd;font-family:Monaco,Consolas,monospace;font-size:90%;padding:1em;line-height:150%;margin-bottom:20px;}pre span{color:teal}table{margin-top:20px;width:100%;background:#f8f8f8;color:#000;border:1px solid #ddd}table tr{border:1px solid #ddd}table th{padding:3px 6px}table td{padding:3px 6px}form{margin:20px 0;background:#f8f8f8;border:1px solid #ddd;padding:20px}form p{margin-bottom:10px}form p span{display:block;font-size:80%;margin-left:75px;color:#888}form p label{position:absolute}form p textarea{margin-left:100px;border:1px solid #ddd;width:500px;padding:3px}form p input{margin-left:100px;border:1px solid #ddd;width:500px;padding:3px}form p textarea{margin-bottom:-5px}form p textarea{height:100px}.errorlist{color:#c30}.messages{background-color:#ff9;padding:10px;margin:10px 0 20px;color:#000}#disqus_thread table tr{border:0}#disqus_thread table{border:0}#dsq-subscribe{font-size:12px}ol.pagination{margin-top:1em}ol.pagination li{display:inline} diff --git a/www/css/main.css b/www/css/main.css new file mode 100644 index 0000000..0ba50ab --- /dev/null +++ b/www/css/main.css @@ -0,0 +1,146 @@ +html { + color: #000; + background: #FFF; } + +body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td { + margin: 0; + padding: 0; } + +fieldset, img { + border: 0; } + +address, caption, cite, code, dfn, em, strong, th, var { + font-style: normal; + font-weight: normal; } + +#boxes li { + background: #F8F8F8; + background-position: 10px center; + background-repeat: no-repeat; + background-size: 20px 20px; + border: #ddd 1px solid; + border-bottom: none; + list-style: none; + padding: 1.6em 1.6em 1.6em 40px; } + #boxes li:last-child { + border-bottom: #ddd 1px solid; } + #boxes li:hover { + background-color: #efefef; + cursor: pointer; } + #boxes li .name { + font-weight: bold; } + #boxes li .size { + color: #999; + font-size: .9em; + margin-left: .5em; } +#boxes .arch { + background-image: url(http://www.archlinux.org/static/favicon.ico); } +#boxes .centos { + background-image: url(https://www.centos.org/favicon.ico); } +#boxes .debian { + background-image: url(http://www.debian.org/favicon.ico); } +#boxes .gentoo { + background-image: url(http://www.gentoo.org/favicon.ico); } +#boxes .omnios { + background-image: url(http://omnios.omniti.com/favicon.ico); } +#boxes .openbsd { + background-image: url(http://www.openbsd.org/favicon.ico); } +#boxes .redhat { + background-image: url(http://www.redhat.com/favicon.ico); } +#boxes .sl { + background-image: url(https://www.scientificlinux.org/favicon.ico); } +#boxes .slackware { + background-image: url(http://www.slackware.com/favicon.ico); } +#boxes .suse { + background-image: url(http://www.opensuse.org/favicon.ico); } +#boxes .ubuntu { + background-image: url(http://www.ubuntu.com/sites/all/themes/ubuntu10/favicon.ico); } + +h1, h2, h3, h4, h5, h6 { + font-size: 100%; + font-weight: normal; } + +body { + font: 16px/1.6 Helvetica, Arial, Verdana, sans-serif; + *font-size: small; + *font: x-small; + color: #444; + background: #fff; } + +pre, code, kbd, samp, tt { + font-family: monospace; + *font-size: 108%; + line-height: 100%; } + +h1 { + color: #000; + font-weight: bold; + font-size: 55px; + letter-spacing: -1px; + border-bottom: 1px solid #ddd; } + h1 a { + color: #000; } + h1 a:hover, h1 a:focus { + text-decoration: none; } + +h2 { + color: #000; + font-family: Georgia,'bitstream vera serif',Times,serif; + font-size: 160%; } + +a { + color: #06a; + text-decoration: none; } + a:hover, a:focus { + text-decoration: underline; } + +#main { + margin: 20px 40px; } + +#footer { + margin-top: 30px; } + #footer p { + font-size: 80%; } + +p { + margin: .5em 0 .75em; } + +code { + color: #c30; + font-family: Monaco,Consolas,monospace; + font-size: 90%; } + +pre { + background: #f8f8f8; + color: #000; + border: 1px solid #ddd; + font-family: Monaco,Consolas,monospace; + font-size: 90%; + padding: 1em; + line-height: 150%; + margin-bottom: 20px; } + pre span { + color: teal; } + +form { + margin: 20px 0; + background: #f8f8f8; + border: 1px solid #ddd; + padding: 20px; } + form p { + margin-bottom: 10px; } + form p span { + display: block; + font-size: 80%; + margin-left: 75px; + color: #888; } + form p label { + position: absolute; } + form p textarea, form p input { + margin-left: 100px; + border: 1px solid #ddd; + width: 500px; + padding: 3px; } + form p textarea { + margin-bottom: -5px; + height: 100px; } diff --git a/www/js/main.js b/www/js/main.js new file mode 100644 index 0000000..50d7ff2 --- /dev/null +++ b/www/js/main.js @@ -0,0 +1,76 @@ +var boxes = document.getElementById("boxes").getElementsByTagName("li"), i; + +for (i=0; i < boxes.length; i++){ + var box = boxes[i]; + var url = box.getElementsByTagName('span')[1]; + + hide(url); + event(box, "click", showUrl(box)); + event(url, "blur", hideUrl(box)); +} + +function event(el, ev, fn) { + if (el.addEventListener) { + el.addEventListener(ev, fn, false); + } else if (el.attachEvent) { + el.attachEvent (ev, fn); + } else { + el['on' + ev] = fn; + } +} + +function hide(el) { + el.style.display = "none"; +} + +function hideUrl(el) { + var spans = el.getElementsByTagName('span'); + var name = spans[0]; + var url = spans[1]; + var size = spans[2]; + return function () { + if (el.isOpen === true) { + el.isOpen = false; + show(name); + hide(url); + show(size); + } + }; +} + +function selectText(el) { + var sel, range; + if (window.getSelection && document.createRange) { + range = document.createRange(); + range.selectNodeContents(el); + sel = window.getSelection(); + sel.removeAllRanges(); + sel.addRange(range); + } else if (document.body.createTextRange) { + range = document.body.createTextRange(); + range.moveToElementText(el); + range.select(); + } +} + +function show(el) { + el.style.display = ""; +} + +function showUrl(el) { + var spans = el.getElementsByTagName('span'); + var name = spans[0]; + var url = spans[1]; + var size = spans[2]; + return function () { + if (el.isOpen !== true) { + el.isOpen = true; + hide(name); + show(url); + url.contentEditable = true; + selectText(url); + hide(size); + } + }; +} + From 8090ca9de23188e97d5d2ba66b76f45cdbcb84b6 Mon Sep 17 00:00:00 2001 From: Jean-Sebastien Ney Date: Mon, 27 Aug 2012 13:07:49 +0200 Subject: [PATCH 5/8] adding sass --- Gemfile | 1 + Gemfile.lock | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Gemfile b/Gemfile index 1da81a6..fd03deb 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,5 @@ # A sample Gemfile source "https://rubygems.org" +gem "sass" gem "stasis" diff --git a/Gemfile.lock b/Gemfile.lock index 4f8c7c5..e975487 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -3,6 +3,7 @@ GEM specs: directory_watcher (1.4.1) redis (2.2.2) + sass (3.2.1) slop (2.1.0) stasis (0.1.23) directory_watcher (~> 1.4.1) @@ -17,4 +18,5 @@ PLATFORMS ruby DEPENDENCIES + sass stasis From 10e8fc7ca6ca2e549768d4a95609f9f029d98b4d Mon Sep 17 00:00:00 2001 From: Jean-Sebastien Ney Date: Mon, 27 Aug 2012 13:08:21 +0200 Subject: [PATCH 6/8] file to generate with stasis --- Rakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index e0e4ec7..12ca9b0 100644 --- a/Rakefile +++ b/Rakefile @@ -7,5 +7,7 @@ desc 'Render the static site through `statis`' task :render do puts 'rendering static file' stasis = Stasis.new('src', '../www') - stasis.render('index.html.erb') + stasis.render('index.html.erb', + 'css', + 'js') end From fe40b1e0b98ec82f31c202d238c453b6947e5c5d Mon Sep 17 00:00:00 2001 From: Jean-Sebastien Ney Date: Mon, 27 Aug 2012 13:09:07 +0200 Subject: [PATCH 7/8] sort boxes by type & by name before display --- src/controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controller.rb b/src/controller.rb index 9d48770..f5e358f 100644 --- a/src/controller.rb +++ b/src/controller.rb @@ -1,5 +1,7 @@ require 'yaml' before 'index.html.erb' do - @boxes = YAML.load_file('data/boxes.yml') + @boxes = YAML.load_file('data/boxes.yml'). + sort{|x, y| x[:name] <=> y[:name]}. + sort{|x, y| x[:type] <=> y[:type]} end From 3c50ebf2dcbf9c41ef337ab389ee5958435bd170 Mon Sep 17 00:00:00 2001 From: Jean-Sebastien Ney Date: Mon, 27 Aug 2012 13:09:38 +0200 Subject: [PATCH 8/8] list design --- src/index.html.erb | 97 +++++---- www/index.html | 521 +++++++++++++++++++++++---------------------- 2 files changed, 316 insertions(+), 302 deletions(-) diff --git a/src/index.html.erb b/src/index.html.erb index cab1ab2..544b648 100644 --- a/src/index.html.erb +++ b/src/index.html.erb @@ -1,66 +1,73 @@ - -A list of base boxes for Vagrant - Vagrantbox.es - + + A list of base boxes for Vagrant - Vagrantbox.es + - + + Fork me on GitHub -Fork me on GitHub +
-
+

Vagrantbox.es

-

Vagrantbox.es

+

Vagrant is an amazing tool for managing virtual machines via a simple to use command line interface. With a simple vagrant up you can be working in a clean environment based on a standard template.

-

Vagrant is an amazing tool for managing virtual machines via a simple to use command line interface. With a simple vagrant up you can be working in a clean environment based on a standard template.

+

These standard templates are called base boxes, and this website is simply a list of boxes people have been nice enough to make publicly available.

-

These standard templates are called base boxes, and this website is simply a list of boxes people have been nice enough to make publicly available.

+

Suggest a Box

-

Suggest a Box

+

Do you know of another base box? Send a pull request and we'll add it to the list below.

-

Do you know of another base box? Send a pull request and we'll add it to the list below.

+

Available Boxes

-

Available Boxes

+

To use the available boxes just replace {title} + and {url} with the information in the table below.

-

To use the available boxes just replace {title} and {url} with the information in the table below.

+
+$ gem install vagrant
+$ vagrant box add {title} {url}
+$ vagrant init {title}
+$ vagrant up
-
- $ gem install vagrant
- $ vagrant box add {title} {url}
- $ vagrant init {title}
- $ vagrant up
-  
+

The list of boxes has been checked on 17th July 2012.

-

The list of boxes has been checked on 17th July 2012.

+
    + <% @boxes.each do |box| %> +
  • + <%= box[:name] %> + <%= box[:url] %> + <%= box[:size] %> +
  • + <% end %> +
- - <% @boxes.each do |box| %> - - - - - - <% end %> -
<%= box[:name] %><%= box[:url] %><%= box[:size] %>
+ - - -
- + + diff --git a/www/index.html b/www/index.html index c2c0c9c..ee49d0d 100644 --- a/www/index.html +++ b/www/index.html @@ -1,279 +1,286 @@ - -A list of base boxes for Vagrant - Vagrantbox.es - + + A list of base boxes for Vagrant - Vagrantbox.es + - + + Fork me on GitHub -Fork me on GitHub +
-
+

Vagrantbox.es

-

Vagrantbox.es

+

Vagrant is an amazing tool for managing virtual machines via a simple to use command line interface. With a simple vagrant up you can be working in a clean environment based on a standard template.

-

Vagrant is an amazing tool for managing virtual machines via a simple to use command line interface. With a simple vagrant up you can be working in a clean environment based on a standard template.

+

These standard templates are called base boxes, and this website is simply a list of boxes people have been nice enough to make publicly available.

-

These standard templates are called base boxes, and this website is simply a list of boxes people have been nice enough to make publicly available.

+

Suggest a Box

-

Suggest a Box

+

Do you know of another base box? Send a pull request and we'll add it to the list below.

-

Do you know of another base box? Send a pull request and we'll add it to the list below.

+

Available Boxes

-

Available Boxes

+

To use the available boxes just replace {title} + and {url} with the information in the table below.

-

To use the available boxes just replace {title} and {url} with the information in the table below.

+
+$ gem install vagrant
+$ vagrant box add {title} {url}
+$ vagrant init {title}
+$ vagrant up
-
- $ gem install vagrant
- $ vagrant box add {title} {url}
- $ vagrant init {title}
- $ vagrant up
-  
+

The list of boxes has been checked on 17th July 2012.

-

The list of boxes has been checked on 17th July 2012.

+
    +
  • + Arch Linux 64 (2012-07-02) + http://vagrant.pouss.in/archlinux_2012-07-02.box + 283MB +
  • +
  • + Archlinux 2011.08.19 - 64 + http://ftp.heanet.ie/mirrors/sourceforge/v/project/va/vagrantarchlinx/2011.08.19/archlinux_2011.08.19.box + 539MB +
  • +
  • + Archlinux 2011-08-19 + http://sourceforge.net/projects/vagrantarchlinx/files/files2011.08.19/archlinux_2011.08.19.box/download + 565MB +
  • +
  • + CentOS 5.5 64 + http://dl.dropbox.com/u/15307300/vagrant-0.7-centos-64-base.box + 499MB +
  • +
  • + Minimal CentOS 6.0 + http://dl.dropbox.com/u/9227672/CentOS-6.0-x86_64-netboot-4.1.6.box + 362MB +
  • +
  • + Opscode centos 5 + http://opscode-vagrant-boxes.s3.amazonaws.com/centos5-gems.box + 458MB +
  • +
  • + CentOS 4 64 puppet + http://puppetlabs.s3.amazonaws.com/pub/centos4_64.box + 540MB +
  • +
  • + Minimal CentOS 5.6 + http://dl.dropbox.com/u/9227672/centos-5.6-x86_64-netinstall-4.1.6.box + 277MB +
  • +
  • + CentOS 5.6 32 + http://yum.mnxsolutions.com/vagrant/centos_56_32.box + 804MB +
  • +
  • + CentOS 5.6 64 puppet + http://puppetlabs.s3.amazonaws.com/pub/centos56_64.box + 614MB +
  • +
  • + CentOS 5.7 64 + http://dl.dropbox.com/u/8072848/centos-5.7-x86_64.box + 521MB +
  • +
  • + CentOS 5.8 x86_64 + http://putitinthepizza.com/boxes/centos58-x86_64.box + 995MB +
  • +
  • + CentOS 6 + https://vagrant-centos-6.s3.amazonaws.com/centos-6.box + 582MB +
  • +
  • + CentOS 6.3 x86_64 minimal + https://dl.dropbox.com/u/7225008/Vagrant/CentOS-6.3-x86_64-minimal.box + 310MB +
  • +
  • + Aegir-up Aegir (Debian Stable 64-bit) + http://ergonlogic.com/files/boxes/aegir-current.box + 297MB +
  • +
  • + Debian Lenny 32 puppet + http://s3-eu-west-1.amazonaws.com/glassesdirect-boxen/Debian/Debian_Lenny_32_puppet_backport.box + 345MB +
  • +
  • + Debian Lenny 64 puppet + http://puppetlabs.s3.amazonaws.com/pub/Debian_Lenny_64.box + 386MB +
  • +
  • + Debian Squeeze 64 + http://puppetlabs.s3.amazonaws.com/pub/Squeeze64.box + 540MB +
  • +
  • + Debian Squeeze 64 rvm + https://s3-eu-west-1.amazonaws.com/rosstimson-vagrant-boxes/Debian-Squeeze-64-rvm.box + +
  • +
  • + Debian squeeze 32 + http://mathie-vagrant-boxes.s3.amazonaws.com/debian_squeeze_32.box + 397MB +
  • +
  • + Debian squeeze 64 + http://dl.dropbox.com/u/937870/VMs/squeeze64.box + 264MB +
  • +
  • + Aegir-up LAMP (Debian Stable 64-bit) + http://ergonlogic.com/files/boxes/debian-LAMP-current.box + 388MB +
  • +
  • + Debian Lenny 32 + https://s3-eu-west-1.amazonaws.com/glassesdirect-boxen/Debian/Debian_Lenny_32.box + 351MB +
  • +
  • + Aegir-up Debian (Stable 64-bit) + http://ergonlogic.com/files/boxes/debian-current.box + 283MB +
  • +
  • + Gentoo 64 + http://dl.dropbox.com/u/4270274/gentoo64-0.7.box + 735MB +
  • +
  • + OmniOS (r151002) + http://omnios.omniti.com/media/omnios-latest.box + 837MB +
  • +
  • + OpenBSD 5.0 (i386) + https://s3-eu-west-1.amazonaws.com/rosstimson-vagrant-boxes/openbsd50-i386.box + 211MB +
  • +
  • + RHEL 6 64 puppet + http://puppetlabs.s3.amazonaws.com/pub/rhel60_64.box + 576MB +
  • +
  • + Scientific Linux 6 64 chefclient0.10 + http://download.frameos.org/sl6-64-chefclient-0.10.box + 459MB +
  • +
  • + Scientific Linux 6 64 chefserver-0.10 + http://download.frameos.org/sl6-64-chefserver-0.10.box + 657MB +
  • +
  • + Slackware 13.37 + http://dl.dropbox.com/u/10544201/slackware-13.37.box + 2.2GB +
  • +
  • + SLES 11sp1 64 puppet + http://puppetlabs.s3.amazonaws.com/pub/sles11sp1_64.box + 665MB +
  • +
  • + OpenSUSE 12.1 64 puppet (until 2012-12-17) + https://transfert.inria.fr/fichiers/42187e68fc6312db6856f07e651cd475/vagrant-opensuse-121-64.box + 500MB +
  • +
  • + openSuse 12.1 x64 + https://github.com/jtperry/OpenSuseVagrantBox + 665MB +
  • +
  • + Ubuntu 11.10 server amd64 + http://timhuegdon.com/vagrant-boxes/Ubuntu-11.10.box + 390MB +
  • +
  • + Ubuntu 11.04 server i386 + http://dl.dropbox.com/u/7490647/talifun-ubuntu-11.04-server-i386.box + 372MB +
  • +
  • + Ubuntu 11.04 server amd64 + http://dl.dropbox.com/u/7490647/talifun-ubuntu-11.04-server-amd64.box + 390MB +
  • +
  • + Ubuntu Maverick 64 + http://mathie-vagrant-boxes.s3.amazonaws.com/maverick64.box + 515MB +
  • +
  • + Ubuntu Oneiric 32 + http://vagrant.cedric-ziel.com/oneiric32.box + 340MB +
  • +
  • + Ubuntu lucid 32 + http://files.vagrantup.com/lucid32.box + 261MB +
  • +
  • + Ubuntu lucid 64 + http://files.vagrantup.com/lucid64.box + 280MB +
  • +
  • + Ubuntu precise 32 + http://files.vagrantup.com/precise32.box + 299MB +
  • +
  • + Ubuntu precise 64 + http://files.vagrantup.com/precise64.box + 323MB +
  • +
  • + Opscode ubuntu 10.04 + http://opscode-vagrant-boxes.s3.amazonaws.com/ubuntu10.04-gems.box + 367MB +
  • +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CentOS 6.3 x86_64 minimalhttps://dl.dropbox.com/u/7225008/Vagrant/CentOS-6.3-x86_64-minimal.box310MB
OmniOS (r151002)http://omnios.omniti.com/media/omnios-latest.box837MB
Arch Linux 64 (2012-07-02)http://vagrant.pouss.in/archlinux_2012-07-02.box283MB
Ubuntu 11.04 server i386http://dl.dropbox.com/u/7490647/talifun-ubuntu-11.04-server-i386.box372MB
Ubuntu 11.04 server amd64http://dl.dropbox.com/u/7490647/talifun-ubuntu-11.04-server-amd64.box390MB
OpenSUSE 12.1 64 puppet (until 2012-12-17)https://transfert.inria.fr/fichiers/42187e68fc6312db6856f07e651cd475/vagrant-opensuse-121-64.box500MB
Scientific Linux 6 64 chefclient0.10http://download.frameos.org/sl6-64-chefclient-0.10.box459MB
Scientific Linux 6 64 chefserver-0.10http://download.frameos.org/sl6-64-chefserver-0.10.box657MB
CentOS 5.6 32http://yum.mnxsolutions.com/vagrant/centos_56_32.box804MB
Debian Lenny 32 puppethttp://s3-eu-west-1.amazonaws.com/glassesdirect-boxen/Debian/Debian_Lenny_32_puppet_backport.box345MB
Debian Lenny 32https://s3-eu-west-1.amazonaws.com/glassesdirect-boxen/Debian/Debian_Lenny_32.box351MB
Debian Lenny 64 puppethttp://puppetlabs.s3.amazonaws.com/pub/Debian_Lenny_64.box386MB
Debian Squeeze 64 rvmhttps://s3-eu-west-1.amazonaws.com/rosstimson-vagrant-boxes/Debian-Squeeze-64-rvm.box
Debian Squeeze 64http://puppetlabs.s3.amazonaws.com/pub/Squeeze64.box540MB
RHEL 6 64 puppethttp://puppetlabs.s3.amazonaws.com/pub/rhel60_64.box576MB
CentOS 4 64 puppethttp://puppetlabs.s3.amazonaws.com/pub/centos4_64.box540MB
SLES 11sp1 64 puppethttp://puppetlabs.s3.amazonaws.com/pub/sles11sp1_64.box665MB
Ubuntu 11.10 server amd64http://timhuegdon.com/vagrant-boxes/Ubuntu-11.10.box390MB
Aegir-up Aegir (Debian Stable 64-bit)http://ergonlogic.com/files/boxes/aegir-current.box297MB
Aegir-up LAMP (Debian Stable 64-bit)http://ergonlogic.com/files/boxes/debian-LAMP-current.box388MB
Aegir-up Debian (Stable 64-bit)http://ergonlogic.com/files/boxes/debian-current.box283MB
OpenBSD 5.0 (i386)https://s3-eu-west-1.amazonaws.com/rosstimson-vagrant-boxes/openbsd50-i386.box211MB
Ubuntu Oneiric 32http://vagrant.cedric-ziel.com/oneiric32.box340MB
CentOS 5.7 64http://dl.dropbox.com/u/8072848/centos-5.7-x86_64.box521MB
CentOS 5.6 64 puppethttp://puppetlabs.s3.amazonaws.com/pub/centos56_64.box614MB
Minimal CentOS 6.0http://dl.dropbox.com/u/9227672/CentOS-6.0-x86_64-netboot-4.1.6.box362MB
Minimal CentOS 5.6http://dl.dropbox.com/u/9227672/centos-5.6-x86_64-netinstall-4.1.6.box277MB
Archlinux 2011-08-19http://sourceforge.net/projects/vagrantarchlinx/files/files2011.08.19/archlinux_2011.08.19.box/download565MB
CentOS 6https://vagrant-centos-6.s3.amazonaws.com/centos-6.box582MB
Archlinux 2011.08.19 - 64http://ftp.heanet.ie/mirrors/sourceforge/v/project/va/vagrantarchlinx/2011.08.19/archlinux_2011.08.19.box539MB
Gentoo 64http://dl.dropbox.com/u/4270274/gentoo64-0.7.box735MB
Opscode ubuntu 10.04http://opscode-vagrant-boxes.s3.amazonaws.com/ubuntu10.04-gems.box367MB
Opscode centos 5http://opscode-vagrant-boxes.s3.amazonaws.com/centos5-gems.box458MB
Ubuntu Maverick 64http://mathie-vagrant-boxes.s3.amazonaws.com/maverick64.box515MB
CentOS 5.5 64http://dl.dropbox.com/u/15307300/vagrant-0.7-centos-64-base.box499MB
Debian squeeze 32http://mathie-vagrant-boxes.s3.amazonaws.com/debian_squeeze_32.box397MB
Debian squeeze 64http://dl.dropbox.com/u/937870/VMs/squeeze64.box264MB
Ubuntu lucid 32http://files.vagrantup.com/lucid32.box261MB
Ubuntu lucid 64http://files.vagrantup.com/lucid64.box280MB
Slackware 13.37http://dl.dropbox.com/u/10544201/slackware-13.37.box2.2GB
Ubuntu precise 32http://files.vagrantup.com/precise32.box299MB
Ubuntu precise 64http://files.vagrantup.com/precise64.box323MB
openSuse 12.1 x64https://github.com/jtperry/OpenSuseVagrantBox665MB
CentOS 5.8 x86_64http://putitinthepizza.com/boxes/centos58-x86_64.box995MB
+ - + + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); +