Build nginx from source in Vagrant/Ubuntu18

26 views
Skip to first unread message

Anthony Jackman

unread,
Jun 23, 2019, 7:44:04 PM6/23/19
to Vagrant
Basic: do I need to issue a ssh login command at the beginning of my provisioning script to build Nginx from its source on a Vagrant/Ubtuntu18 box or is this done behind the scenes as a part of "vagrant up --provision" command?

Long: I realize easy to just install a prebuilt nginx (usual method). It's easy to follow steps after a vagrant ssh login to build nginx one command line at a time. But can this same exact build sequence be done in a provisioning script? I am trying to learn how to do things the hard way. And for own education.

Tony

Jim McGinness

unread,
Jun 23, 2019, 8:56:11 PM6/23/19
to vagra...@googlegroups.com
Shell provisioning scripts are run on the guest, so there is no need to do a ssh login.

Anthony Jackman

unread,
Jun 23, 2019, 9:45:23 PM6/23/19
to vagra...@googlegroups.com
@Jim McGinness,

Thank you!  I am slightly comfortable on how to build Nginx on a Linux machine (no VM).  I wanted to add doing the build within a Vagrant environment to my 'toolbelt'.  Might as well push my knowledge down the street.

Respectfully,
Tony

Virus-free. www.avast.com

On Sun, Jun 23, 2019 at 7:56 PM Jim McGinness <jmc...@gmail.com> wrote:
Shell provisioning scripts are run on the guest, so there is no need to do a ssh login.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/CZ589TCK0oc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CACEPCkQUzwDO5S34xmBnhpu-dPA1mC5cF%3DfThV6jTtiE3LF_ig%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
"If you give a monkey a gun, and the monkey shoots someone, do you blame the monkey or the person who gave the monkey the gun?"
Peggy Bundy
Reply all
Reply to author
Forward
0 new messages