Creation of base images using Packer.
Packer templates for Vagrant base boxes
Build:
packer build -var 'GITHUB_SSH_PUBKEY_URL=https://github.com/username.keys' ubuntu-18.04-amd64.json
Add to Vagrant:
vagrant box add output/ubuntu-18.04.2-amd64-virtualbox.box --name ubuntu-18.04-amd64
Publish to https://app.vagrantup.com:
vagrant cloud publish --box-version 0.0.2 --description "Ubuntu base image" --release jayamorin/ubuntu-18.04 0 virtualbox output/ubuntu-18.04.2-amd64-virtualbox.box
Start and provision Vagrant environments:
GITHUB_SSH_PUBKEY_URL=https://github.com/username.keys vagrant up