Giter Club home page Giter Club logo

vcap-services-sample-release's Introduction

Copyright (c) 2009-2011 VMware, Inc.

Overview

What is Cloud Foundry?

Cloud Foundry is an open platform-as-a-service (PaaS). The system supports multiple frameworks, multiple application infrastructure services and deployment to multiple clouds.

What is this component?

This repo contains the BOSH packages and jobs specifications for a sample Cloud Foundry service: echo service. The section below will walk you through how to deploy echo service into Cloud Foundry.

Deploy echo service with BOSH

Since current bosh supports deploying from multiple releases, deploying echo service is a little different from that before.

Step 1: clone this repo and make a bosh release

git clone git://github.com/cloudfoundry/vcap-services-sample-release.git  vcap-services-sample-release
cd vcap-services-sample-release
./update
bosh create release
bosh upload release

Step 2: customize your bosh deployment manifest

  1. add the lines below under releases sections (Assume the name of the release created in step 1 is services-sample):

         - name: services-sample
           version: latest
     
  2. add echo into builtin_services section of cloud controller configuration file - see the example . An simpler alternative way to achieve this is for CC to get the token from external_service_tokens - see this. Add external_service_tokens under 'properties' section like this:

         external_service_tokens:
            oauth2: foooauth2token
     
  3. add below code under jobs section, see mysql service example

         - name: echo_node
           release: services-sample
           template: echo_node
           instances: 1
           resource_pool: infrastructure
           persistent_disk: 128
           networks:
           - name: default
             static_ips:
             - 192.0.2.90
    
         - name: echo_gateway
           release: services-sample
           template: echo_gateway
           instances: 1
           resource_pool: infrastructure
           networks:
           - name: default
     

and add gateway token under properties section: (refer to the example)

<pre>
    echo_gateway:
      token: changeechotoken
      service_timeout: 15
      node_timeout: 10
    echoserver:
      port: 5002
</pre>

change resource pool size if necessary, see this

When everything is done, fire bosh deploy to deploy echo service into Cloud Foundry.

Deploy echo service under ccng

Deploying echo service under ccng is the same as that under legacy CC. The difference is that to make echo service available, some additional steps are necessary. To achieve that, you should use the high version vmc and the vmc admin plugin:

gem install vmc --pre
gem install admin-vmc-plugin

login as the cc administator:

vmc login $ADMIN_USER --password $ADMIN_PASSWORD
vmc create-service-auth-token --provider core --token changeechotoken --label echo

$ADMIN_USER and $ADMIN_PASSWORD could be found in your bosh deployment manifest under section 'uaa.scim.users'. It may take several minutes before it takes effect. Issue vmc info --services to make sure that echo service is available.

License

Cloud Foundry uses the Apache 2 license. See LICENSE for details.

vcap-services-sample-release's People

Contributors

bluesalt avatar figof avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.