Reducing size

A couple ideas to reduce the size of the image

Current image is 521.4MB
With JRE instead of JDK, and without git I got 476.7MB
Preventing the war copies it went down to 408.6MB

I wanted to ask you if there's another way to inject groovy init scripts without putting them into the zip file, to avoid downstream images repackaging of the war. Right now the only I can think of is:
* expand the war
* copy script into /var/jenkins_home/war/WEB-INF/init.groovy.d/
* start the war
all of it at run time. At build time I would end with two copies of the war contents.
If I just put the scripts before expanding the war they get deleted.

Is it possible to expand the war, delete it and run jenkins from the expanded dir? or that would prevent auto update and other features?
It'd be nice if groovy scripts could be added to /var/jenkins_home/.jenkins or any other dir outside of the war

Agree. Git and curl and zip are my basics of life.

Sure I sneak in emacs too when no one is looking but perhaps not here :)

On Thursday, October 2, 2014, Nicolas De loof <notifications@github.com>
wrote:

> In Dockerfile:
>
> > @@ -1,7 +1,7 @@
> >  FROM ubuntu:14.04
> >
> > -RUN apt-get update && apt-get install -y wget git curl zip && rm -rf /var/lib/apt/lists/*
>
> I'm not in favor with this. Most user already complain jenkins don't
> include git plugin by default, and this one relies on git client being
> installed on system (no tool installer exists yet for this) so removing git
> will prevent them to use git repositories.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/cloudbees/jenkins-ci.org-docker/pull/15/files#r18310360>
> .
>


-- 
Michael D Neale
home: www.michaelneale.net
blog: michaelneale.blogspot.com