Hi All,

In c5 carbon-deployment we have a method to manually deploy artifacts where
we only provide artifact's path and artifact type. This was no issue until
5.2.0-m3 since we only had a single deployment directory.
public void deploy(String artifactPath, ArtifactType artifactType)[1]

But since we have 2 deployment directories with the new
runtime architecture. So how should we handle this deployment?
AFAIU options would be as follows

   1. Add a new API(method) to get the relevant deployment dir and deploy
   to that
   2. We have to prioritize a deployment directory (Server or runtime) and
   deploy only to the prioritized one
   3. Deploy to both deployment dirs


[1] -
https://github.com/wso2/carbon-deployment/blob/master/components/org.wso2.carbon.deployment.engine/src/main/java/org/wso2/carbon/deployment/engine/DeploymentService.java#L43

Thanks
Thusitha


On Fri, Jun 2, 2017 at 10:23 AM, Danesh Kuruppu <dan...@wso2.com> wrote:

> Hi all,
>
> Correction: Proposed directory structure needed to be change as below.
> instead of having deployment directory per runtime, we will have only
> deployment directory per server distribution. This deployment directory
> contains custom deployable artifacts. So ideally there won't be any
> artifact in default distribution.
>
> Though we have packaging all runtimes in one distribution. we are not
> encouraging to run all runtime from the single pack. So we are going to
> provide a script to exact runtime from the distribution pack.
>
> ServerHome
>>        |_________ bin
>>        |         |_______ runtime1.sh
>>        |         |_______ runtime2.sh
>>        |         |_______ start-all.sh (start all the runtimes except
>> default in separate JVMs)
>>        |         |_______ default.sh (start required runtimes in a single
>> JVM)
>>        |         |_______ jartobundle.sh
>>        |
>>        |
>>        |_________ deployment (This will contains custom deployable
>> artifacts)
>>        |         |_______ uuf
>>        |         |_______ microservices
>>        |
>>        |_________ lib
>>        |
>>        |_________ conf
>>        |        |________ runtime1
>>        |        |             |________ deployment.yaml
>>        |        |             |________ master-keys.yaml
>>        |        |             |________ secrets.properties
>>        |        |             |________ log4j2.xml
>>        |        |             |________ etc
>>        |        |             |             |______ pax-logging.properties
>>        |        |             |________ osgi
>>        |        |                           |______ launch.properties
>>        |        |                           |______ osgi-debug.options
>>        |        |________ runtime2
>>        |                      |________ deployment.yaml
>>        |                      |________ master-keys.yaml
>>        |                      |________ secrets.properties
>>        |                      |________ log4j2.xml
>>        |                      |________ etc
>>        |                      |             |______ pax-logging.properties
>>        |                      |________ osgi
>>        |                                    |______ launch.properties
>>        |                                    |______ osgi-debug.options
>>        |
>>        |_________ resources
>>        |        |________ security
>>        |                      |________ wso2secvault.jks
>>        |                      |________ wso2carbon.jks
>>        |
>>        |_________ wso2
>>                 |_______ Default (this can be used to combine several
>> runtimes e.g in IoT)
>>                 |           |_______ bin
>>                 |           |           |_____ carbon.sh
>>                 |           |_______ deployment
>>                 |
>>                 |_______ Runtime1
>>                 |           |_______ bin
>>                 |           |           |______ carbon.sh
>>                 |           |_______ deployment
>>                 |
>>                 |_______ Runtime2
>>                 |           |_______ bin
>>                 |           |           |_____ carbon.sh
>>                 |           |_______ deployment
>>                 |
>>                 |_______ lib (this will contains common jars)
>>
>>
> Thanks
> --
>
> *Danesh Kuruppu*
> Senior Software Engineer | WSO2
>
> Email: dan...@wso2.com
> Mobile: +94 (77) 1690552 <+94%2077%20169%200552>
> Web: WSO2 Inc <https://wso2.com/signature>
>
>
> _______________________________________________
> Architecture mailing list
> Architecture@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog      alokayasoya.blogspot.com
About    http://about.me/thusithathilina
<http://wso2.com/signature>
_______________________________________________
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to