Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider adding a Dockerfile that doesn't declare the .m2 directory as a volume #24

Closed
aslo opened this issue May 15, 2017 · 2 comments
Closed

Comments

@aslo
Copy link

aslo commented May 15, 2017

Child images are unable to remove the VOLUME declaration for this directory, and this means that pre-cached maven artifacts need to be copied into this directory at container start time.

When many artifacts are cached, this can take a long time, and it's on the critical path of performing a maven build with this container. It would be nice to be able to just pre-download artifacts directly into the .m2/repository directory.

@carlossg
Copy link
Owner

That was discussed in #11

You can use -Duser.home= to point to another dir

@aslo
Copy link
Author

aslo commented May 15, 2017

Ok, that's a reasonable solution. Thanks!

@aslo aslo closed this as completed May 15, 2017
carlossg added a commit that referenced this issue Nov 10, 2017
It's a source of confusion for most users

Fixes #35 #32 #24 #11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants