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

[Documentation] I think it would be useful to provide docs for artifacts caching #131

Open
ieugen opened this issue Sep 21, 2021 · 2 comments
Labels
docs Documentation help wanted

Comments

@ieugen
Copy link

ieugen commented Sep 21, 2021

Hello,

When building Clojure apps a lot of artifacts get downloaded.
These can be cached between re-runs for people where this makes sense.

This should improve image build speed - esp in CI servers.

I think more people would use this feature if they new they could and knew where the artifacts are stored in the image so they can mount volumes there.

WDYT?
Eugen

@cap10morgan
Copy link
Collaborator

cap10morgan commented Sep 21, 2021

Sure, we could use some more docs around this. However, there's nothing particularly special about Docker here. The local maven repo is in $HOME/.m2/repository like anywhere else.

And otherwise most of this involves adding in your project.clj, deps.edn, or build.boot (or whatever, I'm not a boot user) file first, installing deps, and then adding in the rest of your code / JAR / whatever so that you only break the deps cache when the file that defines what they are changes. That's pretty common across Docker usage w/ lang-specific dependency managers.

But I've been meaning to re-organize the docs anyway, so I can add a section that spells this all out in there when I do.

@cap10morgan cap10morgan added help wanted docs Documentation labels Sep 21, 2021
@practicalli-johnny
Copy link

https://practical.li/blog/posts/build-and-run-clojure-with-multistage-dockerfile/ article covers using the Offical Clojure Docker image for building Clojure and leveraging the docker cache

Feel free to link or use the content (creative commons attribution license)

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation help wanted
Projects
None yet
Development

No branches or pull requests

3 participants