apache / openwhisk

Apache OpenWhisk is an open source serverless cloud platform
https://openwhisk.apache.org/
Apache License 2.0
6.5k stars 1.16k forks source link

Improve vagrant experience by updating settings in Vagranfile #343

Closed csantanapr closed 8 years ago

csantanapr commented 8 years ago
rabbah commented 8 years ago

Note that in shared mode the provisioning is automatic.

csantanapr commented 8 years ago

Yep, being thinking on having multiple Vagran files And have one that is super simple that just doing vagrant up get's a system up where wsk cli can be called and that's it one command setup. it will be using ephemeral couchdb but it will be for the first time use case I just want to try it out and that's it nothing else, what's the fastest way. Talking to @bjustin-ibm he said easiest to get the wsk cli available to user with no config, is to use folder share in vagrant, why is this not the default @rabbah ? It doesn't work everywhere( i.e. windows) ?

Other vagrant files can be more custom.

rabbah commented 8 years ago

A vagrant machine with just the CLI to avoid installing python on the host? With go CLI (or if we had distributed binaries for our current CLI), would you still want this?

I suppose you can provide a vagrant machine or a docker container with the CLI installed.

csantanapr commented 8 years ago

Not a vagrant to just for the CLI. What I meant is a new vagrant file tools/vagrant/simple/Vagrantfile for simple scenario with just 3 commands have openwhisk hello running

# 1. Fetch Vagrantfile
  wget https://raw.githubusercontent.com/openwhisk/openwhisk/master/tools/vagrant/simple/Vagrantfile
# 2. Start virtual machine
  vagrant up
# 3. Run Hello Action
  vagrant ssh -c "wsk action invoke /whisk.system/samples/echo -p message hello --blocking --result
csantanapr commented 8 years ago

And the most important piece vagrant up always works, docker doesn't timeout, ant build or deploy doesn't fail sometimes.

csantanapr commented 8 years ago

Have this in the README.md, and for other use cases and combinations have links in the README to another md file or files

csantanapr commented 8 years ago

Closing as dup #360