Fork me on GitHub
#announcements
<
2021-10-14
>
Eddú Meléndez15:10:42

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 "" -e 'BP_JVM_VERSION=17.*' or you may want to try another vendor? then pack build tododemo --builder "" --buildpack --buildpack 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

💥 5