Re: [Discuss] Docker base image size

2015-01-01 Thread Imesh Gunaratne
It would be really great if someone could work on this task to reduce the docker image size. Currently Im doing some changes in the agent to support new Member-Created, Member-Initialized events and need to create the php image again. At the moment php image size is 404 MB with Debian 7.7. Thanks

Re: [Discuss] Docker base image size

2014-12-26 Thread Imesh Gunaratne
+1 Yes we could move the Dockerfiles to tools folder. On Fri, Dec 26, 2014 at 8:09 PM, Chamila De Alwis wrote: > Hi Imesh, > > > On Fri, Dec 26, 2014 at 6:38 PM, Imesh Gunaratne wrote: > >> https://github.com/imesh/stratos-docker-images > > > Thanks! I will work on these to test the changes. >

Re: [Discuss] Docker base image size

2014-12-26 Thread Chamila De Alwis
Hi Imesh, On Fri, Dec 26, 2014 at 6:38 PM, Imesh Gunaratne wrote: > https://github.com/imesh/stratos-docker-images Thanks! I will work on these to test the changes. After improving the Dockerfile and base image size, shall we add the base image Dockerfile and default cartridge Dockerfiles in

Re: [Discuss] Docker base image size

2014-12-26 Thread Imesh Gunaratne
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 wrote: > Hi, > > I'm currently in the process of removing th

Re: [Discuss] Docker base image size

2014-12-26 Thread Chamila De Alwis
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

Re: [Discuss] Docker base image size

2014-12-26 Thread Lakmal Warusawithana
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 IDCREATED VIRTUAL SIZE busybox ubuntu-14.04d940f6fef59112 weeks ago 5.609 MB On Fri, Dec 26

Re: [Discuss] Docker base image size

2014-12-26 Thread Lakmal Warusawithana
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

Re: [Discuss] Docker base image size

2014-12-26 Thread Imesh Gunaratne
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 wrote: > I don't know if it works for Python, but there are some minimalistic > docker images for Java: e.g.

Re: [Discuss] Docker base image size

2014-12-26 Thread Paul Fremantle
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 wrote: > Hi Devs, > > I did some analysis on the docker base image we have

Re: [Discuss] Docker base image size

2014-12-26 Thread Imesh Gunaratne
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 wr

Re: [Discuss] Docker base image size

2014-12-26 Thread Gayan Gunarathne
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/d

[Discuss] Docker base image size

2014-12-25 Thread Imesh Gunaratne
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 depend