Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vagrant doc may need update for cloudant setup #1719

Closed
nwspeete-ibm opened this issue Jan 13, 2017 · 2 comments
Closed

Vagrant doc may need update for cloudant setup #1719

nwspeete-ibm opened this issue Jan 13, 2017 · 2 comments

Comments

@nwspeete-ibm
Copy link
Contributor

nwspeete-ibm commented Jan 13, 2017

Provide credentials for cloudant database with admin permissions

OW_DB=cloudant OW_DB_USERNAME=xxxxx OW_DB_PASSWORD=yyyyyy ./hello

https://github.com/openwhisk/openwhisk/blob/master/tools/vagrant/README.md

should cloudant be Cloudant here? @mdeuser @csantanapr

@csantanapr
Copy link
Member

There was something weird with how to read env variables in Vagrant that I had to use lower case cloudant and then exported as upper case Cloudant in Vagrant script

        if [[ $OW_DB == "cloudant" ]]; then
          export OW_DB="Cloudant"
          export OW_DB_PROTOCOL="https"
          export OW_DB_HOST="$OW_DB_USERNAME.cloudant.com"
          export OW_DB_PORT="443"
        else
          export OW_DB="CouchDB"
          export OW_DB_PROTOCOL=#{ENV['OW_DB_PROTOCOL']}
          export OW_DB_HOST=#{ENV['OW_DB_HOST']}
          export OW_DB_PORT=#{ENV['OW_DB_PORT']}
        fi

The docs are correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants