Skip to content

Dalee/build.vagrant

Repository files navigation

General purpose Web-development Vagrant box

This Ubuntu 16.04 box, which is heavily used internally.

Also, you can check out our Ansible roles. They allow quickly build PHP or Node.js based ready-to-use environment on top of this box.

What included:

  • VirtualBox Guest Additions (of course)
  • mailhog (web-interface on :8025)
  • nullmail (system-wide MTA)
  • udp-web-logger (web-ui on :9000, udp on :9010)
  • en_US.UTF-8 and ru_RU.UTF-8 locales (default: en_US.UTF-8)
  • Pre-installed software: ansible, mc, git, etc..
  • Filesystem optimization: noatime, nodiratime
  • Easy add new interfaces: source /etc/network/interfaces.d/* already included in /etc/network/interfaces
  • Grub optimizations: quiet, fastboot

Removed software:

  • cron — it's a dangerous idea have working cron in development vm
  • syslog — just use journalctl

DIY

In case you want to build boxes yourself.

Requirements

How to build

Use packer to build image:

packer build ./ubuntu16.json

Start any build process and take a rest, depending on your system, build will finish in ~20-30 minutes.

Self-hosted boxes

Do not want to upload box to Atlas? Here is the solution:

Check out example/example-metadata.json and example/example-vagrantfile for self-hosted boxes.

To calculate correct sha1 signature for a box, use:

openssl sha1 ./build/*.box

License

Code is unlicensed. Do whatever you want with it. Set Your Code Free.