Create Vagrant For JD

TurnToJPG -->


For deploying the development environment in the Vagrant based environment, choose ubuntu 14.04.


List the exising Vagrants:

$ vagrant box list
panamax-coreos-box-494.4.0 (virtualbox, 0)

Now download the vbox file of 14.04 daily Cloud image i386 from

$ wget

Though this method could starts the vbox, but it’s not clean, it will have problems in our deliveris. So use the result from

$ vagrant init  ubuntu/trusty32
$ vagrant up

Current we use 32, because we may have windowsxp users, or 32-bit system users.

After installation, list all of the installed vboxes:

$ vagrant box list
panamax-coreos-box-494.4.0 (virtualbox, 0)
ubuntu/trusty32            (virtualbox, 14.04)


The is listed as following:

#!/usr/bin/env bash
sudo debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password password rootpass'
sudo debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password_again password rootpass'
apt-get update
apt-get install -y meld
apt-get install -y nginx mysql-server mysql-server-5.5
apt-get install -y nodejs libc-ares2 libv8-3.14.5
apt-get install -y fossil
apt-get install -y git
apt-get install -y php5 php5-fpm
apt-get install -y php5-mysql
apt-get install -y php-pear
apt-get install -y install-info
apt-get install -y php5-dev
apt-get install -y npm
npm install -g pdf.js

then write the Vagrantfile list like:

Vagrant.configure(2) do |config| = "ubuntu/trusty32" "private_network", ip: ""
  config.proxy.http = ""
  config.proxy.https = ""
  config.proxy.no_proxy = "localhost"
  config.vm.provision :shell, path: ""

Now run vagrant provision then we could refresh the installation.