description to follow
this branch has a hybrid server.js which works with Cloud Foundry and Code Engine environments (and locally)
- create a Cloudant instance
- clone this repo
- set the Cloud Foundry org and space
ibmcloud target --cf
- push the code
ibmcloud cf push cf2ce-demo
- bind / connect Cloudant to the app with Manager role
- restage the app
- Create a Code Engine project and switch to it.
- Configure a secret for the container registry, so that new images can be pushed there and pulled for deployment.
- Set up a build based on this repo and branch, the Dockerfile is in the root path
- Perform a buildrun
- Create an app cfce-demo, pick the image from the above build
- Bind the app cf2ce-demo to the Cloudant service instance with role Manager. or, if you already have created a service instance key, e.g., by
ibmcloud ce app bind --name cf2ce-demo --si Cloudant-CFCE -r Managerthen bind by reusing the service credentials:ibmcloud resource service-key-create Cloudant-CFCE-getstarted-Manager Manager --instance-name Cloudant-CFCEibmcloud ce app bind --name cf2ce-demo --service-credential Cloudant-CFCE-getstarted-Manager - Visit the app's URL.