Return-Path: X-Original-To: apmail-stratos-dev-archive@minotaur.apache.org Delivered-To: apmail-stratos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BD11510FBC for ; Fri, 26 Dec 2014 09:30:55 +0000 (UTC) Received: (qmail 82903 invoked by uid 500); 26 Dec 2014 09:30:54 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 82848 invoked by uid 500); 26 Dec 2014 09:30:54 -0000 Mailing-List: contact dev-help@stratos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stratos.apache.org Delivered-To: mailing list dev@stratos.apache.org Received: (qmail 82769 invoked by uid 99); 26 Dec 2014 09:30:54 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Dec 2014 09:30:54 +0000 Received: from mail-ob0-f170.google.com (mail-ob0-f170.google.com [209.85.214.170]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 762251A0031 for ; Fri, 26 Dec 2014 09:30:50 +0000 (UTC) Received: by mail-ob0-f170.google.com with SMTP id wp18so33951926obc.1 for ; Fri, 26 Dec 2014 01:30:47 -0800 (PST) X-Received: by 10.60.155.195 with SMTP id vy3mr24738467oeb.62.1419586247256; Fri, 26 Dec 2014 01:30:47 -0800 (PST) MIME-Version: 1.0 Received: by 10.202.171.147 with HTTP; Fri, 26 Dec 2014 01:30:27 -0800 (PST) In-Reply-To: References: From: Imesh Gunaratne Date: Fri, 26 Dec 2014 15:00:27 +0530 Message-ID: Subject: Re: [Discuss] Docker base image size To: dev Content-Type: multipart/alternative; boundary=089e0102dc32fef423050b1b2d8b --089e0102dc32fef423050b1b2d8b Content-Type: text/plain; charset=UTF-8 Thanks Gayan, we could try out docker-squash. Currently due to a problem in Kubernetes (0.5.2) we need to push the image to the docker hub every time we do an update. This is a very time consuming process since the image is very large. Thanks On Fri, Dec 26, 2014 at 1:44 PM, Gayan Gunarathne wrote: > > AFAIK those Python utility packages are used with the Python agent. > +1 for debian as Debian container size is less than the Ubuntu.I think > Debian will be a good option. > > Also there is a utility[1] for squash multiple docker layers into one.We > can also try this out. > > [1] https://github.com/jwilder/docker-squash > > Thanks, > Gayan > > On Fri, Dec 26, 2014 at 12:39 AM, Imesh Gunaratne > 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 >> > > > > -- > > Gayan Gunarathne > Technical Lead > WSO2 Inc. (http://wso2.com) > email : gayang@wso2.com | mobile : +94 766819985 > > -- Imesh Gunaratne Technical Lead, WSO2 Committer & PMC Member, Apache Stratos --089e0102dc32fef423050b1b2d8b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks Gayan, we could try out docker-squash.

Currently due to a problem in Kubernetes (0.5.2) we need to push the= image to the docker hub every time we do an update. This is a very time co= nsuming process since the image is very large.

Thanks

On Fri, Dec 26, 2014 at 1:44 PM, Gayan Gunarathne <gayang@wso2.com<= /a>> wrote:
<= div class=3D"gmail_extra">
--
<= div>

Gayan Gunarathne
=
Technical Lead
WSO2 Inc. (http://wso2.com)
=
email=C2=A0 : g= ayang@wso2.com=C2=A0 | m= <= span style=3D"font-family:arial,helvetica,sans-serif">obile : +94 766819985
= =C2=A0




--
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, A= pache Stratos
--089e0102dc32fef423050b1b2d8b--