Code Monkey home page Code Monkey logo

bento-ya's Introduction

Gem Version Build Status Master

bento-ya

A RubyGem for managing chef/bento builds

Requirements

  • Packer
  • At least one virtualization provider: VirtualBox, VMware Fusion, Parallels Desktop, etc

Quick Start

Bento-ya is a RubyGem and can be installed with:

$ gem install bento-ya

If you use Bundler, you can add gem "bento-ya" to your Gemfile and make sure to run bundle install.

Using bento

build

To build multiple templates for all providers (VirtualBox, Fusion, Parallels, etc):

$ bento build debian-8.11-amd64 debian-8.11-i386

To build a box for a single provider:

$ bento build --only=virtualbox-iso debian-8.11-amd64

NOTE: The following commands rely on the environmental variables VAGRANT_CLOUD_TOKEN and VAGRANT_CLOUD_ORG being correctly set.

upload

To upload built boxes to Vagrant Cloud.

$ bento upload

release

$ bento release debian-8.11 2.3.3

revoke

$ bento revoke debian-8.11 2.3.3

delete

$ bento delete debian-8.11 2.3.3

Versioning

bento-ya aims to adhere to Semantic Versioning 2.0.0.

License

Apache License, Version 2.0 (see LICENSE)

bento-ya's People

Contributors

rexut avatar tas50 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bento-ya's Issues

Using --cpus flag results in error

If you bento build with the --cpus flag you will receive a nil error:

bento build -v v201812.03.0 -H --only=virtualbox-iso -c 2
>>> undefined method `each' for nil:NilClass

Add some tests

I was thinking it might be worth adding some Travis tests to avoid things like chef/bento#839.

Perhaps even just running bento --help or using a linter would be a good first step?

META: consider moving back into bento repo

This gem grew out of the desire to cleanup the ad-hoc script and Rakefile that was in the bento repo but as time has went on it seems the original approach has (re-)validated that approach as keeping the code closer to the base repo makes sense. This avoids extra build/publish/install steps and thus far I've not really seen much usage of the bento-ya gem itself - it doesn't quite make sense for public consumption and adds more cognitive load than is necessary to do the job we need.

Missing control element to avoid parallel builds

With the command bento build --version 0.8.15 --only qemu,vmware-iso,virtualbox-iso my_template_file.json I run into the following error message from VBox:

VBoxManage: error: VT-x is being used by another hypervisor (VERR_VMX_IN_VMX_ROOT_MODE).

... because of Qemu/KVM can not run in parallel to VMware or Virtual Box. See: https://askubuntu.com/questions/413511

Now, for a QnD workaround, I've add the packer command line option -parallel=false to packer build in lib/bento/build.rb:

...
cmd.insert(2, "-debug") if debug
cmd.insert(2, "-parallel=false")
cmd.insert(0, "echo") if dry_run
cmd

Now my question. Is there a better way to tell packer to work not in parallel mode (perhaps a central configuration file or environment variable)?

If not, I would like to provide a patch for bento-ya to add a new bento build argument --single that will set the packer parallel mode to true or false (similar to --headed).

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.