-
Notifications
You must be signed in to change notification settings - Fork 34
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
Question: does it make sense to merge lein and tools.deps images? #224
Comments
Hmm... I could see that making sense; especially if we stop shipping the boot variants soon (which I think we should). The full version tags would get a bit unwieldy... E.g. What a mess we've got in our tooling these days. Sigh. 😉 What do you think, @Quantisan? |
Posted it to the #docker channel in Clojurians Slack to see what folks think in there: https://clojurians.slack.com/archives/C0PME9N9X/p1713539776559319 |
I like this idea! Regarding boot: it makes sense dropping it since the old images will still exists, and whoever keeps using it can always build their own images. |
tl;dr; I don't see any problem. Speaking out loud my initial worry that turns out to be moot. My first concern would be potential conflict for dependencies. But this is about building an image and not using them in the same JDK project. i.e. like most people, I have both tools installed on my machine too. And it's fine. So I guess it's ok in an image too. For the record, I had a look at the dependencies. https://github.com/clojure/tools.deps/blob/master/deps.edn versus https://github.com/technomancy/leiningen/blob/github/project.clj -> https://github.com/technomancy/leiningen/blob/github/leiningen-core/project.clj -> I see these dependency conflicts: -
Again, this only matters if you use both in your Clojure project. |
Another issue: tools-deps and Leiningen have different CMDs ( The possible solution is to still have both in all images, but have |
Yeah I think we should vary it based on the tag we're building. And for tags that include both (incl. |
Given that the image size is absolutely dominated by JDK (~300 Mb uncompressed), would it be reasonable to ship both Leiningen (~15 Mb uncompressed) and tools.deps (around the same but also needs Git installed) in the single image, kinda like what is done for
latest
? There are a couple of projects that use both on CI and such projects could benefit from such a change. Are there any drawbacks apart from increased image size?The text was updated successfully, but these errors were encountered: