Hi All,

We are trying to implement a feature on AF which enables the user to deploy
their customized app types, Currently this configuration is available
in *appfactory.xml
*under *<Deployer>* tag the content would be as [1], likewise we have for
each app types. Hence this wouldn't be editable by the users and may not
deploy their own app types. If we move out this [1] from *appfactory.xml*
and put this in a configurable file would enable the users to customize
their need.

When we analyzing the [1] we found out , The below content related to Pass
artifact storage configuration and common to all app types.

<RepositoryProvider>

                       <Property name="Class">


org.wso2.carbon.appfactory.s4.integration.GITBlitBasedGITRepositoryProvider

                        </Property>

                       <Property name="BaseURL">
https://gitblit.s2.wso2.com:8444/</Property>

                        <Property name="URLPattern">{@stage}/as</Property>

                       <Property name="AdminUserName">admin</Property>

                         <Property name="AdminPassword">admin</Property>

</RepositoryProvider>


So we are planning to move this to a common configuration file and all the
application types can access that.

In [1] below properties are not used. Hence, We shall get rid of that from
AF

                        <Property name="minInstances">1</Property>

                        <Property name="maxInstances">1</Property>

                        <Property name="shouldActivate"></Property>
                        <Property name="subscribeOnDeployment">false
</Property>

And the below properties are used. So, We can keep them in the *apptype.xml* as
we already have separate apptype.xml for each app types..

                        <Property name="alias">162dev</Property>

                        <Property name="cartridgeType">162dev</Property>

                       <Property name="deploymentPolicy">af-deployment
</Property>

                        <Property name="autoscalePolicy">economy</Property>

                        <Property name="repoURL"></Property>

                       <Property name="dataCartridgeType"></Property>

                       <Property name="dataCartridgeAlias"></Property>


Look forward your views in this.

Thanks & Regards,
S.A.Rajeevan
Software Engineer WSO2 Inc
E-Mail: rajeev...@wso2.com | Mobile : +94776411636
{\rtf1\ansi\ansicpg1252\cocoartf1343\cocoasubrtf140
{\fonttbl\f0\fnil\fcharset0 Monaco;}
{\colortbl;\red255\green255\blue255;\red19\green150\blue163;\red178\green178\blue178;}
\margl1440\margr1440\vieww10800\viewh8400\viewkind0
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural

\f0\fs20 \cf2 \cb3 \CocoaLigature0  <ApplicationType name="*">\
\
                    <ClassName>org.wso2.carbon.appfactory.jenkins.deploy.JenkinsArtifactDeployer</ClassName>\
                    <Endpoint>https://sc.s2.AF_HOST:9463/services/</Endpoint>\
                    <RepositoryProvider>\
                        <Property name="Class">\
                            org.wso2.carbon.appfactory.s4.integration.GITBlitBasedGITRepositoryProvider\
                        </Property>\
                        <Property name="BaseURL">https://gitblit.s2.wso2.com:8444/</Property>\
                        <Property name="URLPattern">\{@stage\}/as</Property>\
                        <Property name="AdminUserName">admin</Property>\
                        <Property name="AdminPassword">admin</Property>\
                    </RepositoryProvider>\
                    <Properties>\
                        <Property name="minInstances">1</Property>\
                        <Property name="maxInstances">1</Property>\
                        <Property name="shouldActivate"></Property>\
                        <Property name="alias">asdev</Property>\
                        <!--mac182dev is the value -->\
                        <Property name="cartridgeType">asdev</Property>\
                        <Property name="deploymentPolicy">af-deployment</Property>\
                        <Property name="autoscalePolicy">economy</Property>\
                        <!--mac182dev is the value -->\
                        <Property name="repoURL"></Property>\
                        <Property name="dataCartridgeType"></Property>\
                        <Property name="dataCartridgeAlias"></Property>\
                    </Properties>\
}
_______________________________________________
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to