Skip to content

chavo1/packer-vagrant-ember

Repository files navigation

This repo contains a Code for Packer to build a Bionic64 based vagrant box with NodeJS and Ember installed.

Requirments:

  1. Install VirtualBox
  2. Install Vagrant. For more information, visit Vagrant Documentation
  3. Install Packer

How to use it

  • Clone the repo
git clone https://github.com/chavo1/packer-vagrant-ember.git
cd packer-vagrant-ember/
  • To build vagrant box use below command:
packer build bionic64-ember.json

To test you will need Kitchen:

For the test you will need Kitchen it is a RubyGem so please find how to install and setup Test Kitchen for developing infrastructure code, check out the Getting Started Guide.

A following gems should be installed:

gem install  kitchen-vagrant
gem install  kitchen-inspec

Than simply execute a following commands:

kitchen converge
kitchen verify
kitchen destroy
  • The output should be as follow:
  Command: `lsb_release -c`
     ✔  stdout should include "bionic"
  debian
     ✔  should eq "debian"
  18.04
     ✔  should eq "18.04"
  Command: `ember`
     ✔  should exist
  Command: `ember -v`
     ✔  stdout should include "3.11.0"
  Command: `node`
     ✔  should exist
  Command: `node -v`
     ✔  stdout should include "12.7.0"

Test Summary: 7 successful, 0 failures, 0 skipped
       Finished verifying <default-vbox-bionic64> (0m1.00s).
-----> Kitchen is finished. (1m14.35s)

About

Packer that create vagrant-ember box

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published