stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lasindu Charith <lasi...@wso2.com>
Subject Re: Deployment section in cartridge definition is not getting saved?
Date Wed, 02 Sep 2015 05:13:28 GMT
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

Mime
View raw message