Skip to content

HashiCorp Packer Template for building a NGiNX Vagrant Base Box (Ubuntu 16)

Notifications You must be signed in to change notification settings

aphorise/hashicorp.packer-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HashiCrop packer Template of NGiNX

This repo contains a packer template for building a Vagrant Base Box of Ubuntu 16 (aka xenial-xerus) which includes a NGiNX http server.

Usage

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.

Notes

This is intended as a mere practise / training excercise - make proper adjustments & reviews where intending to extend toward full pledged usage.

Related:

See original template extended for this use case


About

HashiCorp Packer Template for building a NGiNX Vagrant Base Box (Ubuntu 16)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages