Re: [Dev] [VOTE] Release WSO2 Dockerfiles 1.0.0 RC2

2016-03-20 Thread Chamila De Alwis
Hi Isuru,

IMO we should only do the following tasks.

1) entrypoint.sh should perform a "cp -r" from a given fixed location, ex:
/opt/wso2-patching to  before running wso2server.sh
2) The developers can add a COPY to /opt/wso2-patching when they are
creating a test image Dockerfile
3) An optional volume mount option can be provided with the run.sh script
to mount a given directory to /opt/wso2-patching

The folder name will be adhered to by convention. /opt/wso2-patching will
contain any overridden files that should be copied to CARBON_HOME. We don't
have to copy different folders separately, and IMO we should not. It should
be allowed to override any given file in the CARBON_HOME tree.


Regards,
Chamila de Alwis
Committer and PMC Member - Apache Stratos
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com



On Sun, Mar 20, 2016 at 12:10 AM, Imesh Gunaratne  wrote:

> On Sat, Mar 19, 2016 at 5:26 PM, Isuru Haththotuwa 
> wrote:
>
>>
>> Tested #3, with the simple copy operation, without a file mount. A user
>> of wso2 Dockerfiles would need to create own dockerfile similar to [1] add
>> the relevant artifacts to /mnt/artifacts location using ADD/COPY. Those
>> artifacts will be copied to the deployment space
>> (CARBON_HOME/repository/deployment/server before container initialization).
>>
>> [1].
>>
>> FROM wso2/as-5.3.0:1.0.0
>> MAINTAINER isu...@wso2.com
>>
>> RUN mkdir -p /mnt/artifacts/axis2services
>> RUN mkdir -p /mnt/artifacts/webapps
>> ADD axis2services/* /mnt/artifacts/axis2services
>> ADD webapps/* /mnt/artifacts/webapps
>>
>>
>>
> Great work! I think it would be better if the user can override anything
> under the CARBON_HOME. If so we might not need multiple folders.
>
> BTW in the above sample, we may not need *RUN mkdir *statements. ADD/COPY
> commands create folders if they do not exist.
>
> Thanks
>
>
>
>>>
 On Fri, Mar 18, 2016 at 9:33 AM, Chamila De Alwis 
 wrote:

> *[x] Stable* - Go ahead and release
>
>- Verified Licensing and headers
>- Verified folder and package structure
>- Verified the out of the box functionality (default profile,
>access to management console, login, brief smoke test) of the following
>products.
>- WSO2 AM - 1.9.1, 1.10.0
>   - WSO2 AS - 5.3.0
>   - WSO2 BPS - 3.5.0
>   - WSO2 BRS - 2.1.0, 2.2.0
>   - WSO2 CEP - 4.0.0
>   - WSO2 DAS - 3.0.0, 3.0.1
>   - WSO2 DSS - 3.5.0
>   - WSO2 ES - 2.0.0
>   - WSO2 ESB - 4.9.0
>   - WSO2 GREG - 4.6.0, 5.1.0
>   - WSO2 IS - 5.1.0
>   - WSO2 MB - 3.0.0, 3.1.0
>- Verified build.sh, run.sh, and save.sh functionality for each of
>the above products
>
>
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> On Thu, Mar 17, 2016 at 8:44 PM, Isuru Haththotuwa 
> wrote:
>
>> This is the second release candidate (RC2) of WSO2 Dockerfiles 1.0.0
>> release.
>>
>> *Tag to be voted upon:*
>> https://github.com/wso2/dockerfiles/tree/v1.0.0-rc2
>>
>> *Source and distribution packages:*
>> https://github.com/wso2/dockerfiles/releases/tag/v1.0.0-rc2
>>
>> Please download, test, and vote. The README file under each product
>> directory contains instructions on how to try it out locally.
>>
>> [ ] Broken - Do not release (explain why)
>> [ ] Stable - Go ahead and release
>>
>> This vote will be open for 72 hours or as needed.
>>
>> --
>> Thanks and Regards,
>>
>> Isuru H.
>> +94 716 358 048* *
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Lakmal Warusawithana
 Director - Cloud Architecture; WSO2 Inc.
 Mobile : +94714289692
 Blog : http://lakmalsview.blogspot.com/


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> *Imesh Gunaratne*
>>> Senior Technical Lead
>>> WSO2 Inc: http://wso2.com
>>> T: +94 11 214 5345 M: +94 77 374 2057
>>> W: http://imesh.io
>>> Lean . Enterprise . Middleware
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanks and Regards,
>>
>> Isuru H.
>> +94 716 358 048* *
>>
>>
>>
>
>
> --
> *Imesh Gunaratne*
> 

Re: [Dev] [VOTE] Release WSO2 Dockerfiles 1.0.0 RC2

2016-03-19 Thread Lakmal Warusawithana
-1. This is going to be the official dockerfiles for WSO2 products. We MUST
used best practices while building docker images.


See followings;

1 ) Should use LTS ubuntu base image (latest)

*ubuntu@dockerhub:~/wso2/dockerfiles/common/base-image$ ./build.sh *

*Sending build context to Docker daemon 4.608 kB*

*Step 1 : FROM ubuntu:15.10*

*15.10: Pulling from library/ubuntu*

See following official ubuntu docker images. ubuntu:latest point to 14.04
version


   - 12.04.5, 12.04, precise-20160311, precise (*precise/Dockerfile*)
   

   - 14.04.4, 14.04, trusty-20160315, trusty, latest (*trusty/Dockerfile*)
   

   - 15.10, wily-20160302, wily (*wily/Dockerfile*)
   

   - 16.04, xenial-20160314.4, xenial (*xenial/Dockerfile*)
   


*2 ) *Need to reduce docker images size.

wso2/am-1.10.0   1.0.0
3c1f6b8673f02 minutes ago   1.7 GB

wso2/base1.0.0
53e3c4285e3e5 minutes ago   308.5 MB

IMO we need to reduce it to  ~1.0 GB. AFAIK Chamila has done some
experiment and reduce to ~ 1.0 GB



On Fri, Mar 18, 2016 at 9:33 AM, Chamila De Alwis  wrote:

> *[x] Stable* - Go ahead and release
>
>- Verified Licensing and headers
>- Verified folder and package structure
>- Verified the out of the box functionality (default profile, access
>to management console, login, brief smoke test) of the following products.
>- WSO2 AM - 1.9.1, 1.10.0
>   - WSO2 AS - 5.3.0
>   - WSO2 BPS - 3.5.0
>   - WSO2 BRS - 2.1.0, 2.2.0
>   - WSO2 CEP - 4.0.0
>   - WSO2 DAS - 3.0.0, 3.0.1
>   - WSO2 DSS - 3.5.0
>   - WSO2 ES - 2.0.0
>   - WSO2 ESB - 4.9.0
>   - WSO2 GREG - 4.6.0, 5.1.0
>   - WSO2 IS - 5.1.0
>   - WSO2 MB - 3.0.0, 3.1.0
>- Verified build.sh, run.sh, and save.sh functionality for each of the
>above products
>
>
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> On Thu, Mar 17, 2016 at 8:44 PM, Isuru Haththotuwa 
> wrote:
>
>> This is the second release candidate (RC2) of WSO2 Dockerfiles 1.0.0
>> release.
>>
>> *Tag to be voted upon:*
>> https://github.com/wso2/dockerfiles/tree/v1.0.0-rc2
>>
>> *Source and distribution packages:*
>> https://github.com/wso2/dockerfiles/releases/tag/v1.0.0-rc2
>>
>> Please download, test, and vote. The README file under each product
>> directory contains instructions on how to try it out locally.
>>
>> [ ] Broken - Do not release (explain why)
>> [ ] Stable - Go ahead and release
>>
>> This vote will be open for 72 hours or as needed.
>>
>> --
>> Thanks and Regards,
>>
>> Isuru H.
>> +94 716 358 048* *
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Lakmal Warusawithana
Director - Cloud Architecture; WSO2 Inc.
Mobile : +94714289692
Blog : http://lakmalsview.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Dockerfiles 1.0.0 RC2

2016-03-19 Thread Imesh Gunaratne
On Sat, Mar 19, 2016 at 5:26 PM, Isuru Haththotuwa  wrote:

>
> Tested #3, with the simple copy operation, without a file mount. A user of
> wso2 Dockerfiles would need to create own dockerfile similar to [1] add the
> relevant artifacts to /mnt/artifacts location using ADD/COPY. Those
> artifacts will be copied to the deployment space
> (CARBON_HOME/repository/deployment/server before container initialization).
>
> [1].
>
> FROM wso2/as-5.3.0:1.0.0
> MAINTAINER isu...@wso2.com
>
> RUN mkdir -p /mnt/artifacts/axis2services
> RUN mkdir -p /mnt/artifacts/webapps
> ADD axis2services/* /mnt/artifacts/axis2services
> ADD webapps/* /mnt/artifacts/webapps
>
>
>
Great work! I think it would be better if the user can override anything
under the CARBON_HOME. If so we might not need multiple folders.

BTW in the above sample, we may not need *RUN mkdir *statements. ADD/COPY
commands create folders if they do not exist.

Thanks



>>
>>> On Fri, Mar 18, 2016 at 9:33 AM, Chamila De Alwis 
>>> wrote:
>>>
 *[x] Stable* - Go ahead and release

- Verified Licensing and headers
- Verified folder and package structure
- Verified the out of the box functionality (default profile,
access to management console, login, brief smoke test) of the following
products.
- WSO2 AM - 1.9.1, 1.10.0
   - WSO2 AS - 5.3.0
   - WSO2 BPS - 3.5.0
   - WSO2 BRS - 2.1.0, 2.2.0
   - WSO2 CEP - 4.0.0
   - WSO2 DAS - 3.0.0, 3.0.1
   - WSO2 DSS - 3.5.0
   - WSO2 ES - 2.0.0
   - WSO2 ESB - 4.9.0
   - WSO2 GREG - 4.6.0, 5.1.0
   - WSO2 IS - 5.1.0
   - WSO2 MB - 3.0.0, 3.1.0
- Verified build.sh, run.sh, and save.sh functionality for each of
the above products



 Regards,
 Chamila de Alwis
 Committer and PMC Member - Apache Stratos
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



 On Thu, Mar 17, 2016 at 8:44 PM, Isuru Haththotuwa 
 wrote:

> This is the second release candidate (RC2) of WSO2 Dockerfiles 1.0.0
> release.
>
> *Tag to be voted upon:*
> https://github.com/wso2/dockerfiles/tree/v1.0.0-rc2
>
> *Source and distribution packages:*
> https://github.com/wso2/dockerfiles/releases/tag/v1.0.0-rc2
>
> Please download, test, and vote. The README file under each product
> directory contains instructions on how to try it out locally.
>
> [ ] Broken - Do not release (explain why)
> [ ] Stable - Go ahead and release
>
> This vote will be open for 72 hours or as needed.
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* *
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Lakmal Warusawithana
>>> Director - Cloud Architecture; WSO2 Inc.
>>> Mobile : +94714289692
>>> Blog : http://lakmalsview.blogspot.com/
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Imesh Gunaratne*
>> Senior Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.io
>> Lean . Enterprise . Middleware
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* *
>
>
>


-- 
*Imesh Gunaratne*
Senior Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.io
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Dockerfiles 1.0.0 RC2

2016-03-19 Thread Chamila De Alwis
*[x] Stable* - Go ahead and release

   - Verified Licensing and headers
   - Verified folder and package structure
   - Verified the out of the box functionality (default profile, access to
   management console, login, brief smoke test) of the following products.
   - WSO2 AM - 1.9.1, 1.10.0
  - WSO2 AS - 5.3.0
  - WSO2 BPS - 3.5.0
  - WSO2 BRS - 2.1.0, 2.2.0
  - WSO2 CEP - 4.0.0
  - WSO2 DAS - 3.0.0, 3.0.1
  - WSO2 DSS - 3.5.0
  - WSO2 ES - 2.0.0
  - WSO2 ESB - 4.9.0
  - WSO2 GREG - 4.6.0, 5.1.0
  - WSO2 IS - 5.1.0
  - WSO2 MB - 3.0.0, 3.1.0
   - Verified build.sh, run.sh, and save.sh functionality for each of the
   above products



Regards,
Chamila de Alwis
Committer and PMC Member - Apache Stratos
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com



On Thu, Mar 17, 2016 at 8:44 PM, Isuru Haththotuwa  wrote:

> This is the second release candidate (RC2) of WSO2 Dockerfiles 1.0.0
> release.
>
> *Tag to be voted upon:*
> https://github.com/wso2/dockerfiles/tree/v1.0.0-rc2
>
> *Source and distribution packages:*
> https://github.com/wso2/dockerfiles/releases/tag/v1.0.0-rc2
>
> Please download, test, and vote. The README file under each product
> directory contains instructions on how to try it out locally.
>
> [ ] Broken - Do not release (explain why)
> [ ] Stable - Go ahead and release
>
> This vote will be open for 72 hours or as needed.
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* *
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Dockerfiles 1.0.0 RC2

2016-03-19 Thread Isuru Haththotuwa
On Fri, Mar 18, 2016 at 3:22 PM, Imesh Gunaratne  wrote:

> On Fri, Mar 18, 2016 at 2:34 PM, Lakmal Warusawithana 
> wrote:
>
>> -1. This is going to be the official dockerfiles for WSO2 products. We
>> MUST used best practices while building docker images.
>>
>> See followings;
>>
>> 1 ) Should use LTS ubuntu base image (latest)
>>
>
> Yes, I agree on this Lakmal. Will change this.
>
>> *2 ) *Need to reduce docker images size.
>>
> Yes, Chamila did a research on reducing the docker image size and found
> that the most of the extra space was taken by the multiple Docker RUN
> commands executed. At the moment we have two RUN commands; one in the base
> image and the other in the product image. If we combine these two together
> the time it takes to build the product image increases (to around 15-20
> min). That's why we did not do that change and thought of asking the user
> to do it at the time the image is being deployed in the production
> environment.
>
> However now I understand that we can still do this change and let the
> developers build another image based on the base product image and apply
> their configurations and artifacts in the new image (similar to Tomcat [1]).
>
> According to the offline discussion we had, will cancel this vote and do
> the following changes:
>
>1. Change OS base image to ubuntu:latest (latest LTS).
>2. Combine two RUN commands and reduce the image size. Might need to
>remove the WSO2 base image.
>3. Provide a symlink or any other well defined path to mount/copy
>configurations and deployable artifacts to the Carbon servers.
>
> [1]
> https://github.com/imesh/docker-for-java/blob/master/tomcat-webapp/Dockerfile
>
> Thanks
>

Tested #3, with the simple copy operation, without a file mount. A user of
wso2 Dockerfiles would need to create own dockerfile similar to [1] add the
relevant artifacts to /mnt/artifacts location using ADD/COPY. Those
artifacts will be copied to the deployment space
(CARBON_HOME/repository/deployment/server before container initialization).

[1].

FROM wso2/as-5.3.0:1.0.0
MAINTAINER isu...@wso2.com

RUN mkdir -p /mnt/artifacts/axis2services
RUN mkdir -p /mnt/artifacts/webapps
ADD axis2services/* /mnt/artifacts/axis2services
ADD webapps/* /mnt/artifacts/webapps



>
>
>
>> On Fri, Mar 18, 2016 at 9:33 AM, Chamila De Alwis 
>> wrote:
>>
>>> *[x] Stable* - Go ahead and release
>>>
>>>- Verified Licensing and headers
>>>- Verified folder and package structure
>>>- Verified the out of the box functionality (default profile, access
>>>to management console, login, brief smoke test) of the following 
>>> products.
>>>- WSO2 AM - 1.9.1, 1.10.0
>>>   - WSO2 AS - 5.3.0
>>>   - WSO2 BPS - 3.5.0
>>>   - WSO2 BRS - 2.1.0, 2.2.0
>>>   - WSO2 CEP - 4.0.0
>>>   - WSO2 DAS - 3.0.0, 3.0.1
>>>   - WSO2 DSS - 3.5.0
>>>   - WSO2 ES - 2.0.0
>>>   - WSO2 ESB - 4.9.0
>>>   - WSO2 GREG - 4.6.0, 5.1.0
>>>   - WSO2 IS - 5.1.0
>>>   - WSO2 MB - 3.0.0, 3.1.0
>>>- Verified build.sh, run.sh, and save.sh functionality for each of
>>>the above products
>>>
>>>
>>>
>>> Regards,
>>> Chamila de Alwis
>>> Committer and PMC Member - Apache Stratos
>>> Software Engineer | WSO2 | +94772207163
>>> Blog: code.chamiladealwis.com
>>>
>>>
>>>
>>> On Thu, Mar 17, 2016 at 8:44 PM, Isuru Haththotuwa 
>>> wrote:
>>>
 This is the second release candidate (RC2) of WSO2 Dockerfiles 1.0.0
 release.

 *Tag to be voted upon:*
 https://github.com/wso2/dockerfiles/tree/v1.0.0-rc2

 *Source and distribution packages:*
 https://github.com/wso2/dockerfiles/releases/tag/v1.0.0-rc2

 Please download, test, and vote. The README file under each product
 directory contains instructions on how to try it out locally.

 [ ] Broken - Do not release (explain why)
 [ ] Stable - Go ahead and release

 This vote will be open for 72 hours or as needed.

 --
 Thanks and Regards,

 Isuru H.
 +94 716 358 048* *



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Lakmal Warusawithana
>> Director - Cloud Architecture; WSO2 Inc.
>> Mobile : +94714289692
>> Blog : http://lakmalsview.blogspot.com/
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.io
> Lean . Enterprise . Middleware
>
>
> ___
> Dev mailing list
> 

Re: [Dev] [VOTE] Release WSO2 Dockerfiles 1.0.0 RC2

2016-03-19 Thread Lakmal Warusawithana
On Friday, March 18, 2016, Imesh Gunaratne  wrote:

> I have now completed above points 1 and 2 in all dockerfiles according to
> the improvements proposed by Chamila. Changes were pushed to master branch.
>
> ESB 4.9.0 docker image size reduced from 1.244 GB to 754.7 MB,  API-M
> 1.9.1 image size reduced from 1.693 GB to 1.005 GB.
>
>
Great !!!


> Thanks
>
> On Fri, Mar 18, 2016 at 3:22 PM, Imesh Gunaratne  > wrote:
>
>> On Fri, Mar 18, 2016 at 2:34 PM, Lakmal Warusawithana > > wrote:
>>
>>> -1. This is going to be the official dockerfiles for WSO2 products. We
>>> MUST used best practices while building docker images.
>>>
>>> See followings;
>>>
>>> 1 ) Should use LTS ubuntu base image (latest)
>>>
>>
>> Yes, I agree on this Lakmal. Will change this.
>>
>>> *2 ) *Need to reduce docker images size.
>>>
>> Yes, Chamila did a research on reducing the docker image size and found
>> that the most of the extra space was taken by the multiple Docker RUN
>> commands executed. At the moment we have two RUN commands; one in the base
>> image and the other in the product image. If we combine these two together
>> the time it takes to build the product image increases (to around 15-20
>> min). That's why we did not do that change and thought of asking the user
>> to do it at the time the image is being deployed in the production
>> environment.
>>
>> However now I understand that we can still do this change and let the
>> developers build another image based on the base product image and apply
>> their configurations and artifacts in the new image (similar to Tomcat [1]).
>>
>> According to the offline discussion we had, will cancel this vote and do
>> the following changes:
>>
>>1. Change OS base image to ubuntu:latest (latest LTS).
>>2. Combine two RUN commands and reduce the image size. Might need to
>>remove the WSO2 base image.
>>3. Provide a symlink or any other well defined path to mount/copy
>>configurations and deployable artifacts to the Carbon servers.
>>
>> [1]
>> https://github.com/imesh/docker-for-java/blob/master/tomcat-webapp/Dockerfile
>>
>> Thanks
>>
>>
>>
>>> On Fri, Mar 18, 2016 at 9:33 AM, Chamila De Alwis >> > wrote:
>>>
 *[x] Stable* - Go ahead and release

- Verified Licensing and headers
- Verified folder and package structure
- Verified the out of the box functionality (default profile,
access to management console, login, brief smoke test) of the following
products.
- WSO2 AM - 1.9.1, 1.10.0
   - WSO2 AS - 5.3.0
   - WSO2 BPS - 3.5.0
   - WSO2 BRS - 2.1.0, 2.2.0
   - WSO2 CEP - 4.0.0
   - WSO2 DAS - 3.0.0, 3.0.1
   - WSO2 DSS - 3.5.0
   - WSO2 ES - 2.0.0
   - WSO2 ESB - 4.9.0
   - WSO2 GREG - 4.6.0, 5.1.0
   - WSO2 IS - 5.1.0
   - WSO2 MB - 3.0.0, 3.1.0
- Verified build.sh, run.sh, and save.sh functionality for each of
the above products



 Regards,
 Chamila de Alwis
 Committer and PMC Member - Apache Stratos
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



 On Thu, Mar 17, 2016 at 8:44 PM, Isuru Haththotuwa > wrote:

> This is the second release candidate (RC2) of WSO2 Dockerfiles 1.0.0
> release.
>
> *Tag to be voted upon:*
> https://github.com/wso2/dockerfiles/tree/v1.0.0-rc2
>
> *Source and distribution packages:*
> https://github.com/wso2/dockerfiles/releases/tag/v1.0.0-rc2
>
> Please download, test, and vote. The README file under each product
> directory contains instructions on how to try it out locally.
>
> [ ] Broken - Do not release (explain why)
> [ ] Stable - Go ahead and release
>
> This vote will be open for 72 hours or as needed.
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* *
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org 
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

 ___
 Dev mailing list
 Dev@wso2.org 
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Lakmal Warusawithana
>>> Director - Cloud Architecture; WSO2 Inc.
>>> Mobile : +94714289692
>>> Blog : http://lakmalsview.blogspot.com/
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org 
>>> 

Re: [Dev] [VOTE] Release WSO2 Dockerfiles 1.0.0 RC2

2016-03-19 Thread Imesh Gunaratne
I have now completed above points 1 and 2 in all dockerfiles according to
the improvements proposed by Chamila. Changes were pushed to master branch.

ESB 4.9.0 docker image size reduced from 1.244 GB to 754.7 MB,  API-M 1.9.1
image size reduced from 1.693 GB to 1.005 GB.

Thanks

On Fri, Mar 18, 2016 at 3:22 PM, Imesh Gunaratne  wrote:

> On Fri, Mar 18, 2016 at 2:34 PM, Lakmal Warusawithana 
> wrote:
>
>> -1. This is going to be the official dockerfiles for WSO2 products. We
>> MUST used best practices while building docker images.
>>
>> See followings;
>>
>> 1 ) Should use LTS ubuntu base image (latest)
>>
>
> Yes, I agree on this Lakmal. Will change this.
>
>> *2 ) *Need to reduce docker images size.
>>
> Yes, Chamila did a research on reducing the docker image size and found
> that the most of the extra space was taken by the multiple Docker RUN
> commands executed. At the moment we have two RUN commands; one in the base
> image and the other in the product image. If we combine these two together
> the time it takes to build the product image increases (to around 15-20
> min). That's why we did not do that change and thought of asking the user
> to do it at the time the image is being deployed in the production
> environment.
>
> However now I understand that we can still do this change and let the
> developers build another image based on the base product image and apply
> their configurations and artifacts in the new image (similar to Tomcat [1]).
>
> According to the offline discussion we had, will cancel this vote and do
> the following changes:
>
>1. Change OS base image to ubuntu:latest (latest LTS).
>2. Combine two RUN commands and reduce the image size. Might need to
>remove the WSO2 base image.
>3. Provide a symlink or any other well defined path to mount/copy
>configurations and deployable artifacts to the Carbon servers.
>
> [1]
> https://github.com/imesh/docker-for-java/blob/master/tomcat-webapp/Dockerfile
>
> Thanks
>
>
>
>> On Fri, Mar 18, 2016 at 9:33 AM, Chamila De Alwis 
>> wrote:
>>
>>> *[x] Stable* - Go ahead and release
>>>
>>>- Verified Licensing and headers
>>>- Verified folder and package structure
>>>- Verified the out of the box functionality (default profile, access
>>>to management console, login, brief smoke test) of the following 
>>> products.
>>>- WSO2 AM - 1.9.1, 1.10.0
>>>   - WSO2 AS - 5.3.0
>>>   - WSO2 BPS - 3.5.0
>>>   - WSO2 BRS - 2.1.0, 2.2.0
>>>   - WSO2 CEP - 4.0.0
>>>   - WSO2 DAS - 3.0.0, 3.0.1
>>>   - WSO2 DSS - 3.5.0
>>>   - WSO2 ES - 2.0.0
>>>   - WSO2 ESB - 4.9.0
>>>   - WSO2 GREG - 4.6.0, 5.1.0
>>>   - WSO2 IS - 5.1.0
>>>   - WSO2 MB - 3.0.0, 3.1.0
>>>- Verified build.sh, run.sh, and save.sh functionality for each of
>>>the above products
>>>
>>>
>>>
>>> Regards,
>>> Chamila de Alwis
>>> Committer and PMC Member - Apache Stratos
>>> Software Engineer | WSO2 | +94772207163
>>> Blog: code.chamiladealwis.com
>>>
>>>
>>>
>>> On Thu, Mar 17, 2016 at 8:44 PM, Isuru Haththotuwa 
>>> wrote:
>>>
 This is the second release candidate (RC2) of WSO2 Dockerfiles 1.0.0
 release.

 *Tag to be voted upon:*
 https://github.com/wso2/dockerfiles/tree/v1.0.0-rc2

 *Source and distribution packages:*
 https://github.com/wso2/dockerfiles/releases/tag/v1.0.0-rc2

 Please download, test, and vote. The README file under each product
 directory contains instructions on how to try it out locally.

 [ ] Broken - Do not release (explain why)
 [ ] Stable - Go ahead and release

 This vote will be open for 72 hours or as needed.

 --
 Thanks and Regards,

 Isuru H.
 +94 716 358 048* *



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Lakmal Warusawithana
>> Director - Cloud Architecture; WSO2 Inc.
>> Mobile : +94714289692
>> Blog : http://lakmalsview.blogspot.com/
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.io
> Lean . Enterprise . Middleware
>
>


-- 
*Imesh Gunaratne*
Senior Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.io
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] Release WSO2 Dockerfiles 1.0.0 RC2

2016-03-18 Thread Isuru Haththotuwa
This is the second release candidate (RC2) of WSO2 Dockerfiles 1.0.0
release.

*Tag to be voted upon:*
https://github.com/wso2/dockerfiles/tree/v1.0.0-rc2

*Source and distribution packages:*
https://github.com/wso2/dockerfiles/releases/tag/v1.0.0-rc2

Please download, test, and vote. The README file under each product
directory contains instructions on how to try it out locally.

[ ] Broken - Do not release (explain why)
[ ] Stable - Go ahead and release

This vote will be open for 72 hours or as needed.

-- 
Thanks and Regards,

Isuru H.
+94 716 358 048* *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Dockerfiles 1.0.0 RC2

2016-03-18 Thread Imesh Gunaratne
On Fri, Mar 18, 2016 at 2:34 PM, Lakmal Warusawithana 
wrote:

> -1. This is going to be the official dockerfiles for WSO2 products. We
> MUST used best practices while building docker images.
>
> See followings;
>
> 1 ) Should use LTS ubuntu base image (latest)
>

Yes, I agree on this Lakmal. Will change this.

> *2 ) *Need to reduce docker images size.
>
Yes, Chamila did a research on reducing the docker image size and found
that the most of the extra space was taken by the multiple Docker RUN
commands executed. At the moment we have two RUN commands; one in the base
image and the other in the product image. If we combine these two together
the time it takes to build the product image increases (to around 15-20
min). That's why we did not do that change and thought of asking the user
to do it at the time the image is being deployed in the production
environment.

However now I understand that we can still do this change and let the
developers build another image based on the base product image and apply
their configurations and artifacts in the new image (similar to Tomcat [1]).

According to the offline discussion we had, will cancel this vote and do
the following changes:

   1. Change OS base image to ubuntu:latest (latest LTS).
   2. Combine two RUN commands and reduce the image size. Might need to
   remove the WSO2 base image.
   3. Provide a symlink or any other well defined path to mount/copy
   configurations and deployable artifacts to the Carbon servers.

[1]
https://github.com/imesh/docker-for-java/blob/master/tomcat-webapp/Dockerfile

Thanks



> On Fri, Mar 18, 2016 at 9:33 AM, Chamila De Alwis 
> wrote:
>
>> *[x] Stable* - Go ahead and release
>>
>>- Verified Licensing and headers
>>- Verified folder and package structure
>>- Verified the out of the box functionality (default profile, access
>>to management console, login, brief smoke test) of the following products.
>>- WSO2 AM - 1.9.1, 1.10.0
>>   - WSO2 AS - 5.3.0
>>   - WSO2 BPS - 3.5.0
>>   - WSO2 BRS - 2.1.0, 2.2.0
>>   - WSO2 CEP - 4.0.0
>>   - WSO2 DAS - 3.0.0, 3.0.1
>>   - WSO2 DSS - 3.5.0
>>   - WSO2 ES - 2.0.0
>>   - WSO2 ESB - 4.9.0
>>   - WSO2 GREG - 4.6.0, 5.1.0
>>   - WSO2 IS - 5.1.0
>>   - WSO2 MB - 3.0.0, 3.1.0
>>- Verified build.sh, run.sh, and save.sh functionality for each of
>>the above products
>>
>>
>>
>> Regards,
>> Chamila de Alwis
>> Committer and PMC Member - Apache Stratos
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>> On Thu, Mar 17, 2016 at 8:44 PM, Isuru Haththotuwa 
>> wrote:
>>
>>> This is the second release candidate (RC2) of WSO2 Dockerfiles 1.0.0
>>> release.
>>>
>>> *Tag to be voted upon:*
>>> https://github.com/wso2/dockerfiles/tree/v1.0.0-rc2
>>>
>>> *Source and distribution packages:*
>>> https://github.com/wso2/dockerfiles/releases/tag/v1.0.0-rc2
>>>
>>> Please download, test, and vote. The README file under each product
>>> directory contains instructions on how to try it out locally.
>>>
>>> [ ] Broken - Do not release (explain why)
>>> [ ] Stable - Go ahead and release
>>>
>>> This vote will be open for 72 hours or as needed.
>>>
>>> --
>>> Thanks and Regards,
>>>
>>> Isuru H.
>>> +94 716 358 048* *
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Lakmal Warusawithana
> Director - Cloud Architecture; WSO2 Inc.
> Mobile : +94714289692
> Blog : http://lakmalsview.blogspot.com/
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Imesh Gunaratne*
Senior Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.io
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev