Hi Chamila, I fixed series of issues in the base image, startup scripts, etc and the latest docker image files can be found here: https://github.com/imesh/stratos-docker-images
Thanks On Fri, Dec 26, 2014 at 6:14 PM, Chamila De Alwis <chami...@wso2.com> wrote: > Hi, > > I'm currently in the process of removing the following pip dependencies > from the agent by writing standard library alternatives for what they > already do. The git related libraries will be replaced by Dulwich library > and use of psutil and pexpect will be dropped. > > +1 for using the Debian image or busybox after a proper test run with all > the cartridges we provide by default. > > > Regards, > Chamila de Alwis > Software Engineer | WSO2 | +94772207163 > Blog: code.chamiladealwis.com > > > > On Fri, Dec 26, 2014 at 5:19 PM, Lakmal Warusawithana <lak...@wso2.com> > wrote: > >> I think we can use busybox:ubuntu-14.04, its around 5MB but already has >> all the libs in place and working. >> >> REPOSITORY TAG IMAGE ID CREATED >> VIRTUAL SIZE >> >> busybox ubuntu-14.04 d940f6fef591 12 weeks ago >> 5.609 MB >> >> >> >> >> >> On Fri, Dec 26, 2014 at 4:51 PM, Lakmal Warusawithana <lak...@wso2.com> >> wrote: >> >>> Here some base images sizes, busybox [1] is the smallest. >>> >>> $ docker images >>> REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE >>> scratch latest 511136ea3c5a 13 months ago 0 B >>> busybox latest a9eb17255234 7 weeks ago 2.433 MB >>> debian latest e8d37d9e3476 4 days ago 85.18 MB >>> ubuntu latest ba5877dc9bec 4 days ago 192.7 MB >>> centos latest 1a7dc42f78ba 2 weeks ago 236.4 MB >>> fedora latest 88b42ffd1f7c 10 days ago 373.7 MB >>> >>> [1]https://registry.hub.docker.com/_/busybox/ >>> >>> >>> On Fri, Dec 26, 2014 at 4:39 PM, Imesh Gunaratne <im...@apache.org> >>> wrote: >>> >>>> Thanks Paul! We will have a look at it. As it looks like now a higher >>>> percentage of the space is taken for the dependent libraries. >>>> >>>> Thanks >>>> >>>> On Fri, Dec 26, 2014 at 3:57 PM, Paul Fremantle <p...@wso2.com> wrote: >>>> >>>>> I don't know if it works for Python, but there are some minimalistic >>>>> docker images for Java: e.g. >>>>> https://registry.hub.docker.com/u/errordeveloper/oracle-jre/dockerfile/ >>>>> >>>>> Paul >>>>> >>>>> On 25 December 2014 at 19:09, Imesh Gunaratne <im...@apache.org> >>>>> wrote: >>>>> >>>>>> Hi Devs, >>>>>> >>>>>> I did some analysis on the docker base image we have created and >>>>>> found that it's size is around 453.6 MB. >>>>>> >>>>>> This image has been created using Ubuntu 14.04 docker image, which is >>>>>> 192.7 MB, which means that we have added additional 260.9 MB by >>>>>> installing >>>>>> python cartridge agent and its dependencies. IMO we need to optimize >>>>>> this. >>>>>> >>>>>> We could use Debian 7.7 instead of Ubuntu 14.04 so that the parent >>>>>> image size would be 85.1 M and Stratos base image would be 369 M. This >>>>>> reduces nearly 84.6 MB from the Stratos base image. >>>>>> >>>>>> We could also check the dependencies we have added here [1], are we >>>>>> using all of them? >>>>>> >>>>>> RUN apt-get install -y git python python-pip python-dev gcc >>>>>> RUN pip install paho-mqtt >>>>>> RUN pip install GitPython==0.3.1-beta2 >>>>>> RUN pip install psutil >>>>>> RUN pip install gittle >>>>>> RUN pip install pexpect >>>>>> >>>>>> [1] https://github.com/chamilad/stratos-dockerfiles/tree/old-format >>>>>> >>>>>> Thanks >>>>>> >>>>>> -- >>>>>> Imesh Gunaratne >>>>>> >>>>>> Technical Lead, WSO2 >>>>>> Committer & PMC Member, Apache Stratos >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Paul Fremantle >>>>> CTO and Co-Founder, WSO2 >>>>> OASIS WS-RX TC Co-chair, Apache Member >>>>> >>>>> UK: +44 207 096 0336 >>>>> >>>>> blog: http://pzf.fremantle.org >>>>> twitter.com/pzfreo >>>>> p...@wso2.com >>>>> >>>>> wso2.com Lean Enterprise Middleware >>>>> >>>>> Disclaimer: This communication may contain privileged or other >>>>> confidential information and is intended exclusively for the addressee/s. >>>>> If you are not the intended recipient/s, or believe that you may have >>>>> received this communication in error, please reply to the sender >>>>> indicating >>>>> that fact and delete the copy you received and in addition, you should not >>>>> print, copy, retransmit, disseminate, or otherwise use the information >>>>> contained in this communication. Internet communications cannot be >>>>> guaranteed to be timely, secure, error or virus-free. The sender does not >>>>> accept liability for any errors or omissions. >>>>> >>>> >>>> >>>> >>>> -- >>>> Imesh Gunaratne >>>> >>>> Technical Lead, WSO2 >>>> Committer & PMC Member, Apache Stratos >>>> >>> >>> >>> >>> -- >>> Lakmal Warusawithana >>> Vice President, Apache Stratos >>> Director - Cloud Architecture; WSO2 Inc. >>> Mobile : +94714289692 >>> Blog : http://lakmalsview.blogspot.com/ >>> >>> >> >> >> -- >> Lakmal Warusawithana >> Vice President, Apache Stratos >> Director - Cloud Architecture; WSO2 Inc. >> Mobile : +94714289692 >> Blog : http://lakmalsview.blogspot.com/ >> >> > -- Imesh Gunaratne Technical Lead, WSO2 Committer & PMC Member, Apache Stratos