This repo contains a packer template for building a Vagrant Base Box of Ubuntu 16 (aka xenial-xerus) which includes a NGiNX http server.
packer build ubuntu16-nginx.json ;
# ...
# ... SUCCESSFUL GENERATION SHOULD RESULT IN:
# ... nginx64.box
vagrant box add --name nginx nginx64.box ; # register box
vagrant init nginx ; # on success a Vagrantfile is generated
vagrant up ;
vagrant ssh ; # ssh to running instance
# ...
# ...
# ...
vagrant destroy -f ... ; # when done to remove.
vagrant box remove -f ... --provider virtualbox ; # to remove local images.See vagrantup.com/aphorise/boxes/ubuntu16-nginx for generated image.
This is intended as a mere practise / training excercise - make proper adjustments & reviews where intending to extend toward full pledged usage.
See original template extended for this use case