Re: Docker image with initialized local cache saves 50 seconds in startup

2019-10-31 Thread Tibor Digana
Thx Herve for the hint. The size of the local cahe is 40 MB. All core plugins [1] and Packaging (ear, ejb, jar, rar and war) are included in the range [3.0, 4.0). Two plugins (verifier:2.0+ and rar:1.0+) do not have this range. [1] https://maven.apache.org/plugins/ On Wed, Oct 30, 2019 at 10:47

Re: Docker image with initialized local cache saves 50 seconds in startup

2019-10-30 Thread Romain Manni-Bucau
What is the usage of this first group outside demos (it is trivial to build a dedicated image for demos so i drop it from any asf work for now)? Le mer. 30 oct. 2019 à 23:18, Tibor Digana a écrit : > Romain, of course we know this but there are two groups of users. > First those who use the Mave

Re: Docker image with initialized local cache saves 50 seconds in startup

2019-10-30 Thread Tibor Digana
Romain, of course we know this but there are two groups of users. First those who use the Maven in docker without CI. And second of those who integrate the docker container with the CI and they use the volumes. The first group of people may freely use the image we are discussing here because this

Re: Docker image with initialized local cache saves 50 seconds in startup

2019-10-30 Thread Romain Manni-Bucau
Ci servers have all cache so it is useless to make the docker pull slow with useless versions to then download or not plugins IMHO. Le mer. 30 oct. 2019 à 22:47, Hervé Boutemy a écrit : > Le mercredi 30 octobre 2019 14:55:46 CET, vous avez écrit : > > Agree we should publish with an asf account

Re: Docker image with initialized local cache saves 50 seconds in startup

2019-10-30 Thread Hervé Boutemy
Le mercredi 30 octobre 2019 14:55:46 CET, vous avez écrit : > Agree we should publish with an asf account and make it part of the release > process. > That said I still fail to see how you can add a relevant cache. Maybe take > the time to review plugin version in a few asf projects (let say > mave

Re: Docker image with initialized local cache saves 50 seconds in startup

2019-10-30 Thread Tibor Digana
Stephen, this is clear to me but we need to move ahead a bit. Should I start the vote that we will have new project ( github.com/apache/maven-docker) for these purposes? Or should we talk to Carloss and ask him if he would be fine with deploying these images in DockerHub? On Wed, Oct 30, 2019 at 3

Re: Docker image with initialized local cache saves 50 seconds in startup

2019-10-30 Thread Stephen Connolly
My script is for my cases. I'm just saying it's not rocket science, others are doing it already On Wed, 30 Oct 2019 at 13:31, Tibor Digana wrote: > Stephen, yeah something like you do in your scrip but it must not be a > personal owner. Even Carloss is person who makes this deployment to > Docke

Re: Docker image with initialized local cache saves 50 seconds in startup

2019-10-30 Thread Romain Manni-Bucau
Agree we should publish with an asf account and make it part of the release process. That said I still fail to see how you can add a relevant cache. Maybe take the time to review plugin version in a few asf projects (let say maven-surefire, geronimo-openapi and spark) and check out if it works to c

Re: Docker image with initialized local cache saves 50 seconds in startup

2019-10-30 Thread Tibor Digana
Stephen, yeah something like you do in your scrip but it must not be a personal owner. Even Carloss is person who makes this deployment to DockerHub but his images are used by the entire world and we should decide whether we would agree with him to have such images under his responsibility or our r

Re: Docker image with initialized local cache saves 50 seconds in startup

2019-10-30 Thread Tibor Digana
I don't want your dependencies of course because it is user specific issue. I only want to trigger "mvn clean install" or deploy and this will fetch the plugins, not the dependencies from a dummy empty pom. (don't mean user's pom). Finally, the user will have plugins in the image which come from th

Re: Docker image with initialized local cache saves 50 seconds in startup

2019-10-30 Thread Stephen Connolly
On Wed 30 Oct 2019 at 08:21, Tibor Digana wrote: > It's the situation when you have maven plugins in repo and it means that > all custom plugins/deps can be still downloaded as before. > Nothing exists like this in the world and we are talking about the > approaches. > Cough cough cough https:/

Re: Docker image with initialized local cache saves 50 seconds in startup

2019-10-30 Thread Tibor Digana
It's the situation when you have maven plugins in repo and it means that all custom plugins/deps can be still downloaded as before. Nothing exists like this in the world and we are talking about the approaches. I added Karl, Herve and Stephen in CC because we talked about this issue in ASF CON and

Re: Docker image with initialized local cache saves 50 seconds in startup

2019-10-29 Thread Romain Manni-Bucau
Hi Tibor, It has two issues: 1. It will not be the right plugin versions in 90% of the cases (except demo ;)) 2. It will miss all custom plugins Now question is: what happens if you mount your local repo when running docker? It works as expected. Means we could use a custom entrypoint printing a

Docker image with initialized local cache saves 50 seconds in startup

2019-10-29 Thread Tibor Digana
If you use Docker images with Maven with no mapping of cache to the volumes, you may notice that Maven downloads the plugins for the build lifecycle. This slows down the build because a lot of artifacts and plugins are initially downloaded. This takes 50 seconds which might be even longer than the