How to Deploy a CF Tile in BOSH


Mikey Boldt
 

Hi Imesh,

Just to be explicit, a tile is *Pivotal* CF-specific packaging around your
components. Since BOSH lite and PCF Dev do not have Pivotal's Ops Manager,
you cannot deploy a tile on them.

You should work on implementing your service broker and getting your WSO2
middleware packaged into a BOSH release outside of a tile first. One
approach you could take is to implement your service broker as a CF app and
develop it against PCF Dev, and develop your WSO2 middleware BOSH release
against BOSH lite. Even if your end goal is a tile, you will need these
components as input to Tile Generator, and developing them outside of a
tile will let you debug faster. Tile Generator doesn't help you with
developing these components (not yet, at least).

Once those components are solid, you can wrap them up in a tile using Tile
Generator. (And at some point you'll need to talk to PIvotal if you want
your tile published on Pivotal Network...the sooner the better, really.)

Hope that helps,
Mikey

On Fri, Jun 30, 2017 at 4:11 AM Imesh Gunaratne <imesh.gunaratne(a)gmail.com>
wrote:

Hi Alex,

Thank you very much for your quick response! Let me explain things in
detail.

My attempt to is to implement a sample service broker and see how services
work on CloudFoundry (CF). The end goal of this process is to implement
service brokers for WSO2 middleware similar to Redis, MySQL and other
service brokers currently available on the Pivotal network.

As I understood, to do this I need to things:
1. A service broker API
2. WSO2 middleware deployment automation

My plan is to deploy the service broker API on CF as an application and
deploy WSO2 middleware on BOSH using a Tile. The idea is to make it work on
any CF environment (on-premise & public cloud).

I started by generating a sample Tile using the Tile Generator and tried
to deploy it on AWS by setting up a CF environment using the CloudFormation
templates given. There I found that CF itself requires nearly 45 EC2
instances and thought of using BOSH lite and PCF Dev instead.

Now I have setup BOSH lite and PCF Dev on my local machine and trying to
deploy the above sample Tile on it. This sample Tile has a simple bash
script with an echo command. When I build the Tile, I can see that it is
generating a BOSH release and a .pivotal file containing the BOSH release
to be deployed via the Ops Manager.

Now, as I do not have Ops Manager running locally I tried deploying the
BOSH release generated by the tile build in BOSH lite. I also tried setting
up an Ops Manager locally but I could not find much information that and
its Git repository. Really appreciate your thoughts on this.

Thanks
Imesh


Imesh Gunaratne
 

Hi Alex,

Thank you very much for your quick response! Let me explain things in detail.

My attempt to is to implement a sample service broker and see how services work on CloudFoundry (CF). The end goal of this process is to implement service brokers for WSO2 middleware similar to Redis, MySQL and other service brokers currently available on the Pivotal network.

As I understood, to do this I need to things:
1. A service broker API
2. WSO2 middleware deployment automation

My plan is to deploy the service broker API on CF as an application and deploy WSO2 middleware on BOSH using a Tile. The idea is to make it work on any CF environment (on-premise & public cloud).

I started by generating a sample Tile using the Tile Generator and tried to deploy it on AWS by setting up a CF environment using the CloudFormation templates given. There I found that CF itself requires nearly 45 EC2 instances and thought of using BOSH lite and PCF Dev instead.

Now I have setup BOSH lite and PCF Dev on my local machine and trying to deploy the above sample Tile on it. This sample Tile has a simple bash script with an echo command. When I build the Tile, I can see that it is generating a BOSH release and a .pivotal file containing the BOSH release to be deployed via the Ops Manager.

Now, as I do not have Ops Manager running locally I tried deploying the BOSH release generated by the tile build in BOSH lite. I also tried setting up an Ops Manager locally but I could not find much information that and its Git repository. Really appreciate your thoughts on this.

Thanks
Imesh


Alex Ley
 

Hi Imesh,

The tile is designed to be installed on PCF OpsManager [1] not BOSH
directly. This gives enterprises a quick and easy way to deploy your
software without having to know about BOSH.

If you want to get started with learning BOSH, via BOSH lite, you can
follow the guide here [2].

I would be keen to hear what sparked your interest in creating a tile.

[1] https://docs.pivotal.io/pivotalcf/1-11
[2] https://mariash.github.io/learn-bosh/

On 29 June 2017 at 13:54, Imesh Gunaratne <imesh.gunaratne(a)gmail.com> wrote:

Hi Devs,

I generated a sample tile using the Tile Generator [1] and trying to
deploy it on BOSH using bosh-lite.
However, I couldn't find information on that in the documentation [2].
Appreciate your help on this.

[1] https://docs.pivotal.io/tiledev/tile-generator.html
[2] https://docs.pivotal.io/tiledev/bosh-release.html

Thanks
Imesh


Imesh Gunaratne
 

Hi Devs,

I generated a sample tile using the Tile Generator [1] and trying to deploy it on BOSH using bosh-lite.
However, I couldn't find information on that in the documentation [2]. Appreciate your help on this.

[1] https://docs.pivotal.io/tiledev/tile-generator.html
[2] https://docs.pivotal.io/tiledev/bosh-release.html

Thanks
Imesh