Code Monkey home page Code Monkey logo

oneops-packer-1's Introduction

OneOps Vagrant

packer.io + OneOps Build = OneOps Single Stand Alone Instance

Requirements

The following tools are required for building OneOps Vagrant box:

  • git
  • JDK 8
  • Ruby
  • Packer . If you have downloaded the binary, packer has to be added to the system path(export PATH=PATH_TO_PACKER:$PATH).

Initial Setup

The Vagrant process depends on the full build being run, but the Vagrant image is not built by default in the main build because it takes 10+ minutes. Make sure from the main build you have at least run mvn clean package. This will ensure artifacts required by the Vagrant build are in place.

Building

You can use Maven to build the Vagrant box:

mvn clean package

Alternatively you can use the build.sh script that Maven uses directly:

./build.sh

Once the OneOps Vagrant box is created, you and added it to your collection of boxes:

vagrant box add -f --name oneops target/oneops-centos73-${version}.box

This will place the just created box in ~/.vagrant.d/boxes

You need a Vagrantfile that looks like this:

Vagrant.configure(2) do |config|

 config.vm.box = "oneops"

 # Use the vagrant-cachier plugin, if installed, to cache downloaded packages
  if Vagrant.has_plugin?("vagrant-cachier")
    config.cache.scope = :box
  end

  config.vm.network "forwarded_port", guest: 3001, host: 3003
  config.vm.network "forwarded_port", guest: 3000, host: 9090
  config.vm.network "forwarded_port", guest: 8080, host: 9091
  config.vm.network "forwarded_port", guest: 8161, host: 8166

 config.vm.provider "virtualbox" do |vb|
   vb.gui = false
   vb.memory = 6144
   vb.customize ["modifyvm", :id, "--cpuexecutioncap", "70"]
  end
end

And then you can use standard Vagrant commands to start the VM.s

oneops-packer-1's People

Contributors

sleepyorion avatar jvanzyl avatar mosabua avatar gauravlall avatar

Watchers

James Cloos 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.