Skip to content

dr4g0nnn/VagrantGazelle

Repository files navigation

Vagrant Gazelle Build

Combined with a vanilla Debian Wheezy box, this Vagrantfile and associated files allows for the creation of a machine running Gazelle without any interaction from the user.

Once set up, the gazelle source files will be present in src/, which is shared to /var/www/ on the machine. A port forward from port 80 on the guest to 8080 on the host will also be established.

PLEASE NOTE: This setup is not suitable for use in production; all boxes created by this set up are identical, and therefore passwords & similar used in Gazelle & MySQL are known to all.

Usage

  1. Install a vagrant box for Debian Wheezy or build your own
  2. Get the source:
        git clone git@github.com:dr4g0nnn/VagrantGazelle.git
    
  3. Boot the box:
        cd VagrantGazelle; vagrant up
    
  4. Wait, while the install script sets everything up.
  5. Log into your newly set up box as usual:
        vagrant ssh
    

Windows specific configuration

On windows it might fail due to no vbox addons being installed with the error

Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:

mount -t vboxsf -o uid=1000,gid=1000 var_www_ /var/www

The error output from the command was:

mount: unknown filesystem type 'vboxsf'

It can be fixed by installing vagrant-vbguest

vagrant plugin install vagrant-vbguest
vagrant destroy && vagrant up

If the above doesn't seem to work for you, You can try editing the config.vm.synced_folder to the following

config.vm.synced_folder "src/", "/var/www/", nfs: true

Building your own Debian Wheezy base box

If you, like me, do not trust random Vagrant boxes found on the internet, you can create your own easily using Veewee.

This method requires Ruby to be installed.

    git clone https://github.com/jedi4ever/veewee.git && cd veewee
    gem install bundler
    bundle install --path=.bundle

    bundle exec veewee vbox define 'debian-wheezy' 'Debian-7.1.0-amd64-netboot'
    bundle exec veewee vbox build 'debian-wheezy'
    bundle exec veewee vbox export 'debian-wheezy'

    vagrant box add 'debian-wheezy' 'debian-wheezy.box'

NOTE: Here Veewee is shown being checked out and used directly rather than installed, this is because at the time of writing the copy of Veewee in the gem repository was not able to be installed.

Contributing

Additions, fixes & improvements to this project are welcome:

  1. Fork this repository
  2. Make your changes
  3. Commit them to your fork
  4. Send me a pull request!

License

These files are available under the terms of the MIT license; see LICENSE or MIT license at opensource.org.

About

Creates a Vagrant setup running Gazelle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •