Code Monkey home page Code Monkey logo

boxes's Introduction

Boxes

Collection of vagrant files, packer configurations and various shell scripts to manage virtual machines for different purposes.

Prerequisites

To use this repository you'll at least need vagrant and VirtualBox. If you want to build your own base images you'll also need packer.

How to use this repo

There are three main parts in this repository:

  1. Packer configurations to build vagrant boxes (in packer/)
  2. Provisioning scripts (in scripts/)
  3. Virtual machine profiles containing at least a Vagrantfile (everything else)

With this spinning up a webserver in a VM can be as easy as

cd ./websrv
vagrant up

And you'll have an apache webserver serving the content in ./websrv/webroot/ to you on http://localhost:8000.

Getting the base images

Before being able to use the VM profiles you'll need some base images (called boxes) for vagrant to use. You can either build those yourself using packer or use public images from e.g. here by changing the box name in the Vagrantfiles (e.g. change "ubuntu-14.04-amd64" to "ubuntu/trusty64" to use the official ubuntu 14.04 vagrant box).

Building the boxes yourself with packer is straight forward:

cd packer/ubuntu-14.04-amd64
packer-io build ubuntu-14.04-amd64.json
# and, to register the new box with vagrant:
vagrant box add ubuntu-14.04-amd64 ubuntu-14.04-amd64_virtualbox.box

Note: You may want to change the keyboard layout and timezone settings for the boxes.

If you're using different boxes be sure to change the config.vm.box setting in the Vagrantfiles.

boxes's People

Contributors

gram21 avatar saelo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.