[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: RFC: New cartridge format



On 08/30/2012 05:55 PM, Clayton Coleman wrote:
I think Heroku uses it or something related.

Apparently it does. From https://github.com/heroku/heroku-buildpack-php/tree/master/bin:

The procfile is "release" which calls boot.sh, which is created in a "compile" script.

Mike

----- Original Message -----
On 08/30/2012 02:49 PM, Mike McGrath wrote:
On Thu, 30 Aug 2012, Mike Khusid wrote:

On 08/13/2012 05:27 PM, Mike McGrath wrote:
The arch board and runtime teams met today to chat about the
future of
cartridges and I think we've come up with a really solid format.
  This
piggybacks on the typeless gears work we're already going and
drastically
simplifies cartridge creation.

The new format is much closer to a regular DIY cartridge and also
has
proper interfaces into our "platform".  The distinction between
what a
cartridge does and what our platform does is going to be well
defined.
We're still months away from using it, but take a look.

cartridges-new is a *NON-WORKING* branch that we can work from.

https://github.com/openshift/crankcase/tree/cartridges-new/cartridges

Here's an example of the new php cartridge:

https://github.com/openshift/crankcase/tree/cartridges-new/cartridges/php-5.3

Compared to the old:

https://github.com/openshift/crankcase/tree/cartridges-new/cartridges/php-5.3.old

This is a work in progress and will likely change a bit over time
but this
should give everyone a good idea of where we're headed.

	-Mike

I've been going through some of the scripts and then it dawned on
me that
someone might have had the same problem and solved it. I searched
and it looks
like someone did, indeed. Please take a look at a Procfile format
that Foreman
uses. Reference: https://github.com/ddollar/foreman and
http://ddollar.github.com/foreman/. What do you think about using
Procfile to
simplify automating process launching?

I think someone has mentioned this before but I missed it.  What is
the
relationship between foreman and Procfile?  Is Procfile a standard?

Should we use this format or just support it?  Seems like there's a
lot of
analogous features we already use so it's not out of the question
that
we'd be able to use it.

	-Mike
As far as I can tell, Procfile is a creation of a foreman which I
linked
above. There is apparently more than one open source software called
foreman which also had me confused.

IMHO, I'd use this format. It's simple enough and seems sufficient
for
basic use cases. For complex use cases, one can use the scripts in
the
hooks directory for customizations.

Mike

_______________________________________________
dev mailing list
dev lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/dev



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]