caf_deploy

Cloud Assistants lib for deploying apps in Cloud Foundry v2

CAF (Cloud Assistant Framework)

Co-design permanent, active, stateful, reliable cloud proxies with your web app.

See http://www.cafjs.com

This repository contains a CAF extra lib to deploy applications in Cloud Foundry.

lib/proxy_deploy.js

See the Turtles example application.

   "plugs": [
       {
        "module": "caf_deploy/plug",
        "name": "deploy_mux",
        "description": "Shared connection to a service that deploys apps in CF\n Properties: \n",
        "env": {
            "target" : "http://api.cafjs.com",
            "user" : "foo@bar.com",
            "password" : "pleasechange",
            "map": null,
            "memory" : 64,
            "instances": 1,
            "services" :["redis"]
        }
      }

The properties define the vcap target, username, and password. They also specify how many instances should host you application, the maximum memory the can use, and the extra services that your application needs. Optionally, we can specify a new mapping url (e.g., http://api.whatever.com) where api is replaced by the application name (null is used as a placeholder for tools that configure this option).

"internal" : [
    {
        "module": "caf_deploy/plug_ca",
        "name": "deploy_ca",
        "description": "Provides a  service  to deploy apps for this CA",
        "env" : {

        }
    }
    ...
 ]
 "proxies" : [
   {
        "module": "caf_deploy/proxy",
        "name": "deploy",
        "description": "Access to a service to deploy CF apps",
        "env" : {

        }
    },
    ...
  ]