stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anuruddha Premalal <anuruddhaprema...@gmail.com>
Subject Re: Deployment section in cartridge definition is not getting saved?
Date Thu, 03 Sep 2015 09:07:33 GMT
Thanks Anuruddha. This worked.

I think the documentation[1] has to be updated accordingly.

[1]
https://cwiki.apache.org/confluence/display/STRATOS/4.1.x+Cartridge+Resource+Definition

On Wed, Sep 2, 2015 at 10:59 AM, Anuruddha Liyanarachchi <
anuruddhal@wso2.com> wrote:

> Hi Anuruddha,
>
> The parameter name should be,
> {
> "name": "payload_parameter.APPLICATION_PATH",
> "value": "/opt/tomcat/webapps"
> }
>
> On Wed, Sep 2, 2015 at 10:43 AM, Lasindu Charith <lasindu@wso2.com> wrote:
>
>> Hi Anuruddha,
>>
>> This was there in Stratos 4.0.0 and should be working in 4.1.0 as in [1
>> <https://cwiki.apache.org/confluence/display/STRATOS/4.1.x+Cartridge+Resource+Definition>
>> ].
>> But as a workaround, you can define APP_PATH under cartridge properties
>> until we investigate the issue.
>>
>>
>>                {
>> "name": "payload_parameter.APP_PATH",
>> "value": "/opt/tomcat/webapps"
>> }
>>
>> On Wed, Sep 2, 2015 at 10:28 AM, Anuruddha Premalal <
>> anuruddhapremalal@gmail.com> wrote:
>>
>>> Hi Devs,
>>>
>>> I'm trying to add the following[1] single tenant tomcat cartridge to
>>> stratos 4.1.1 via both api and UI. Even though it added successfully
>>> deployment section is missing from the definition(I got the definition
>>> using API). What would be the cause?.
>>>
>>>
>>> [1] {
>>> "type": "tomcat",
>>> "category": "framework",
>>> "provider": "apache",
>>> "host": "appfactory.private.wso2.com",
>>> "displayName": "Tomcat 7",
>>> "description": "Tomcat 7 Cartridge",
>>> "version": "7",
>>> "multiTenant": false,
>>> "loadBalancingIPType": "public",
>>> "portMapping": [
>>> {
>>> "name": "http-8080",
>>> "protocol": "http",
>>> "port": 8080,
>>> "proxyPort": 80,
>>> "kubernetesPortType": "NodePort"
>>> }
>>> ],
>>> "iaasProvider": [
>>> {
>>> "type": "kubernetes",
>>> "imageId": "wso2/tomcat:1.0.0",
>>> "networkInterfaces": []
>>> }
>>> ],
>>> "property": [
>>> {
>>> "name": "payload_parameter.S2GIT_IP",
>>> "value": "10.100.5.106"
>>> },
>>> {
>>> "name": "payload_parameter.S2GIT_DOMAIN",
>>> "value": "s2git.appfactory.private.wso2.com"
>>> },
>>> {
>>> "name": "payload_parameter.START_CMD",
>>> "value": "PCA"
>>> }
>>> ],
>>> "deployment": {
>>> "baseDir": "/opt/tomcat/webapps",
>>> "dir": []
>>> }
>>> }
>>>
>>> Regards,
>>> --
>>> *Anuruddha Premalala (MIEEE)Mobile : +94710461070 <%2B94710461070>E-mail
>>>  : anuruddhapremalal@gmail.com <anuruddhapremalal@gmail.com>web      :
>>> www.anuruddha.org <http://www.anuruddha.org>Sri Lanka.*
>>>
>>
>> Thanks,
>>
>> [1]
>> https://cwiki.apache.org/confluence/display/STRATOS/4.1.x+Cartridge+Resource+Definition
>>
>> --
>> *Lasindu Charith*
>> Software Engineer, WSO2 Inc.
>> Committer & PMC Member, Apache Stratos
>> Mobile: +94714427192 | Web: blog.lasindu.com
>>
>
>
>
> --
> *Thanks and Regards,*
> Anuruddha Lanka Liyanarachchi
> Software Engineer - WSO2
> Mobile : +94 (0) 712762611
> Tel      : +94 112 145 345
> a <thilinad@wso2.com>nuruddhal@wso2.com
>



-- 
*Anuruddha Premalala (MIEEE)Mobile : +94710461070E-mail  :
anuruddhapremalal@gmail.com <anuruddhapremalal@gmail.com>web      :
www.anuruddha.org <http://www.anuruddha.org>Sri Lanka.*

Mime
View raw message