csantanapr closed pull request #3700: allow to override vagrant box os with 
trusty
URL: https://github.com/apache/incubator-openwhisk/pull/3700
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/tools/vagrant/README.md b/tools/vagrant/README.md
index 4015d7cf22..127ec27248 100644
--- a/tools/vagrant/README.md
+++ b/tools/vagrant/README.md
@@ -282,6 +282,12 @@ the configuration to use trusted certificates instead.
 Don't use `vagrant resume`. See
 [here](https://github.com/mitchellh/vagrant/issues/6787) for related issue.
 
+## Override Vagrant Box
+By default the Vagrant VM will use `ubuntu/xenial64` if you want to use 
`ubuntu/trusty64` you can override with an environment variable `BOX_OS`.
+```
+BOX_OS="ubuntu/trusty64" ./hello
+```
+
 ## Using Vagrant VM in GUI mode (Optional)
 Create VM with Desktop GUI. The `username` and `password` are both set to
 `vagrant` by default.
diff --git a/tools/vagrant/Vagrantfile b/tools/vagrant/Vagrantfile
index ce7b143ebb..2494dd98a5 100644
--- a/tools/vagrant/Vagrantfile
+++ b/tools/vagrant/Vagrantfile
@@ -24,7 +24,7 @@
 # Don't use vagrant resume, it will run the provisioning a second producing 
errors
 # Use vagrant suspend and vagrant up (using up it skips provisioning)
 
-BOX = "ubuntu/xenial64"
+BOX = ENV['BOX_OS'] || "ubuntu/xenial64"
 BOX_MEMORY = ENV['BOX_MEMORY'] || '4096'
 BOX_CPUS = ENV['BOX_CPUS'] || '4'
 MACHINE_IP = ENV['MACHINE_IP'] || '192.168.33.16'


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to