This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-14
Channels
- # ai (3)
- # babashka (45)
- # beginners (81)
- # biff (26)
- # calva (10)
- # cider (5)
- # clj-kondo (55)
- # cljfx (6)
- # clojure (125)
- # clojure-berlin (1)
- # clojure-europe (37)
- # clojure-italy (7)
- # clojure-nl (3)
- # clojure-norway (79)
- # clojure-uk (1)
- # clojurescript (63)
- # clojutre (1)
- # conjure (5)
- # cursive (37)
- # data-science (1)
- # datalevin (4)
- # datomic (28)
- # eastwood (6)
- # fulcro (26)
- # graphql (20)
- # honeysql (6)
- # humbleui (4)
- # jobs-discuss (5)
- # kaocha (1)
- # leiningen (8)
- # missionary (5)
- # nbb (4)
- # observability (3)
- # off-topic (7)
- # pathom (8)
- # podcasts-discuss (1)
- # rewrite-clj (18)
- # ring (6)
- # sci (23)
- # scittle (9)
- # shadow-cljs (49)
- # squint (10)
- # testing (11)
- # xtdb (17)
can i create a local .m2 dir after running lein install
? Its contents being derived from that command
so that I can copy it for Docker purposes
A few options that I have used in the past 1. I used to use a lein plugin for this in the past. https://github.com/djpowell/lein-libdir it generates a directory of all the depenendency jars. 2. Another option that you have is to generate an uberjar (lein uberjar) then you don't have to worry about dependency jars at all. 3. Setup remote maven repo server and push your dependencies there. Do you intend to copy your jars into a docker image?
Seems that m2 location can be overriden with an environment variable
export MAVEN_OPTS="-Dmaven.repo.local=/path/to/repository"
Not tested by me though.(other libraries based on jib are available as well) https://github.com/GoogleContainerTools/jib does the sensible thing of putting dependencies into its own layer and app to another; read a bit about it, it’s actually really well thought out