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

RE: Custom Cartridge Development In OpenShift


Thanks for the response.

I guess  I did not put it across correctly.

An example :Cartridge functionality is act as a gateway to access an external service and populate openshift env variables (say external db serviceparams )that my application can be binded to and use it.

I need to give some information to my cartridge - how can I do that?

I am not talking about giving information to application which can be done via env variables.I need to understand how user while adding cartridge can also pass some info to cartridge which can be used for its functioning.

Another example :Say while adding xxx cartridge ,a drop down appears and I can choose which version of xxx and then add. This is not possible via web console
Any command line way to achieve this.

Hope I am not confusing !

-----Original Message-----
From: Ben Parees [mailto:bparees redhat com] 
Sent: Wednesday, December 18, 2013 8:26 PM
To: Madathilthattantav, S.
Cc: dev lists openshift redhat com; users lists openshift redhat com
Subject: Re: Custom Cartridge Development In OpenShift

1/2) not sure if this is the best/only option, but you can specify environment variables while creating your app, so that could be used to pass parameters.
3) Not clear on the question?  Do you mean change what parameters the start method takes?  If so then the answer would be no.
4) Again environment variables would be one approach.  Marker files are another way to control your script behavior, but of course it is harder to set those in advance.  (you would need a quickstart that included them, I think)

Ben Parees | OpenShift

----- Original Message -----
From: "s madathilthattantav" <s madathilthattantav accenture com>
To: dev lists openshift redhat com, users lists openshift redhat com
Sent: Wednesday, December 18, 2013 8:46:58 AM
Subject: Custom Cartridge Development In OpenShift

Hi All 

I was working on custom cartridge development and I have a question regarding the flexibility of the same 

1. Do we have the option of giving user-input or parameters while adding a custom cartridge. 

2. From web interface this is not a possibility – but what about using rhc command ? 

3. Is it possible to change the start method definition of control script. – I assume it as no 

4. If option 2 is not possible,which I mostly think – would it be possible to define different methods (say method x) in control script that will take user-input? 

For ex : it would be two step process-- fisrt add cartridge and then invoke method x on cartridge that will take input and do functionalty. 

A use case: 

The custom cartridge will talk to different system ,based on the input given to custom cartridge and do some processing. 

I hope I am not missing anything obvious-! 



This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy. . 


dev mailing list
dev lists openshift redhat com

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