This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-14
Channels
- # announcements (1)
- # asami (3)
- # aws (1)
- # babashka (22)
- # beginners (39)
- # calva (21)
- # clj-kondo (10)
- # cljdoc (22)
- # cljs-dev (17)
- # clojure (93)
- # clojure-australia (3)
- # clojure-europe (39)
- # clojure-italy (3)
- # clojure-losangeles (17)
- # clojure-nl (14)
- # clojure-russia (2)
- # clojure-uk (5)
- # clojurescript (35)
- # community-development (7)
- # conjure (2)
- # cursive (13)
- # data-science (1)
- # datomic (25)
- # emacs (5)
- # events (4)
- # figwheel-main (2)
- # fulcro (12)
- # graphql (7)
- # gratitude (2)
- # inf-clojure (6)
- # leiningen (6)
- # lsp (49)
- # malli (13)
- # membrane (30)
- # minecraft (1)
- # pathom (3)
- # pedestal (26)
- # polylith (13)
- # portal (2)
- # quil (3)
- # random (1)
- # re-frame (13)
- # reagent (43)
- # reitit (6)
- # releases (1)
- # reveal (2)
- # ring (3)
- # shadow-cljs (30)
- # specter (5)
- # sql (8)
- # tools-build (1)
- # tools-deps (13)
- # videos (1)
one year ago, https://github.com/paketo-buildpacks/leiningen was released. Today, I am happy to announce that https://github.com/paketo-buildpacks/clojure-tools has been released. So, if there is a deps.edn file at the root directory then just running pack build tododemo --builder
will produce a image. By default, it is using java 11. want java 17? then pack build tododemo --builder "
or you may want to try another vendor? then pack build tododemo --builder "
In order to run the image, perform docker run --rm --tty --publish 8080:8080 -e JAVA_TOOL_OPTIONS="-XX:MaxMetaspaceSize=100M" tododemo
For some reason, in java 11 we need to increase the metaspace but doesn’t happen with java 8 and 17 and alibaba dragonwell. There is already an https://github.com/paketo-buildpacks/libjvm/issues/88 for that.
Paketo Buildpacks have some default values but you can override them. Check the samples https://github.com/paketo-buildpacks/samples/tree/main/java/deps and https://github.com/paketo-buildpacks/samples/tree/main/java/tools-build