Skip to content

Latest commit

 

History

History
executable file
·
49 lines (31 loc) · 1.82 KB

File metadata and controls

executable file
·
49 lines (31 loc) · 1.82 KB

packer-elixir-phoenix-centos7

Creates virtualbox and vmware boxes for Elixir and Phoenix development based on Ubuntu 14.04 (trusty).

Based on Jeff Geerling's packer-ubuntu-1404.

Current Ubuntu Version Used: 14.04.4

Installed software

All the software required for Phoenix development.

  • Erlang 19.0
  • Elixir 1.3.4
    • Hex (latest)
    • Rebar (latest)
    • Phoenix (latest)
  • PostgreSQL 9.4 (user: postgres, password: postgres)
  • Node.js 5.x

Generates two Vagrant box files, for:

  • VirtualBox
  • VMware

The example can be modified to use more Ansible roles, plays, and included playbooks to fully configure (or partially) configure a box file suitable for deployment for development environments.

Requirements

The following software must be installed/present on your local machine before you can use Packer to build the Vagrant box file:

Usage

Make sure all the required software (listed above) is installed, then cd to the directory containing this README.md file, and run:

$ packer build elixir-phoenix-ubuntu-trusty64.json

After a few minutes, Packer should tell you the box was generated successfully.

If you want to only build a box for one of the supported virtualization platforms (e.g. only build the VMware box), add --only=vmware-iso to the packer build command:

$ packer build --only=virtualbox-iso elixir-phoenix-ubuntu-trusty64.json
$ packer build --only=vmware-iso elixir-phoenix-ubuntu-trusty64.json