Tuesday, October 11, 2016

How to stop "Docker maven builds" downloading the whole maven repository everytime

When you google for this problem you can find different answers with different types of mounting of m2 folder. But if you are planing to mount your local m2 folder into Docker that is not really a very clean solution. The problem with that is the Docker build you are planing can be biased based on your local builds you have.

So I asked the question in stackoverflow and here is docker-compose.yml of my final working solution

version: '2'
services:
  client:
    build: .
    container_name: client
    volumes:
      - m2repo:/root/.m2/repository
volumes:
  m2repo:

Now when you run the system for the 2nd time, it will not load the maven content form the internet spending hours downloading them.

2 comments:

Le Tuan said...

xem phim sex online
tai phim sex 3gp
phim sex truc tuyen

gream said...

Online casino games are HD, excellent service, security and integrity, everyone who comes to the fun and guaranteed that they will not be fooled by the cheat sure because we are open for a long time, then the gambler. Have fun and do not have to spend time playing at another real casino. Golden slot It will come to experience the gambling of the best that we have to offer through the online casino site, which is a land that has been popular and a convenient way. To place bets on all bettors with high-performance online casinos and aiming to offer quality gambling games quickly through the Gclub69 website. The purpose of continuous entertainment We continue to play casino games, and we are delighted to create opportunities for our online gamblers to enjoy their favorite online gambling games. สล็อตออนไลน์ It is another of the gambling games that will make us happy as well as the online casino games that are open 24 hours a day.