Hi Imesh,

On Wed, Sep 6, 2017 at 11:06 PM, Imesh Gunaratne <im...@wso2.com> wrote:

> Hi Pubudu,
>
> On Wed, Sep 6, 2017 at 10:25 PM, Pubudu Gunatilaka <pubu...@wso2.com>
> wrote:
>
>> Hi Imesh,
>>
>> I actually used the product paths as the mount paths. If we are using a
>> separate folder and copy the files, then it will work. I will check the bin
>> folder mounting scenario again. If we are going in this direction, we may
>> have to do the following for the docker image.
>>
>
> ​I just checked mounting the bin folder with EI and it seems to be working
> fine. I will share the changes soon.
>
>
>> 1. Include all the artifacts such as mysql connector, Kubernetes
>> membership scheme, etc
>>
>
> ​Yes, I think this would be helpful for the users as they would not need
> to re-create the vanilla product images for different requirements.
> ​
>
>> 2. Specify file copying from configuration mounts to product folders - I
>> think we can parameterize this using an env value.
>>
>
> ​Do we really need to parameterize these? Wouldn't it be better to add all
> required folders?​ May be what we need is the bin, conf and deployment
> folders (including sub folders)?
>
>
Without mentioning all the configuration files in the dockerfile[1], we can
copy all the content of wso2ei-integrator-conf to wso2ei product folder. In
this way, users can dynamically add any configuration file without changing
the base docker image.They only need to add a configmap and mount that to
the wso2ei-integrator-conf folder. In APIM we are using an init script to
start the server, configure localMemberHost and copy artifacts. This script
can be used to copy files.

[1] -
https://github.com/wso2/kubernetes-ei/blob/master/dockerfiles/integrator/Dockerfile#L25
<https://github.com/wso2/kubernetes-ei/blob/master/dockerfiles/integrator/Dockerfile#L25>
[2] -
https://github.com/wso2/kubernetes-apim/blob/2.1.0/base/apim/init_carbon.sh

Thank you!
-- 
*Pubudu Gunatilaka*
Committer and PMC Member - Apache Stratos
Senior Software Engineer
WSO2, Inc.: http://wso2.com
mobile : +94774078049 <%2B94772207163>
_______________________________________________
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to