From 593439579fa39e002d0c7db39e4ca6a5e873da4c Mon Sep 17 00:00:00 2001 From: Moghedrin Date: Tue, 9 Sep 2014 15:32:47 -0600 Subject: [PATCH] Added an example of single line clojure usage. --- clojure/README-content.md | 8 ++++++++ clojure/README.md | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/clojure/README-content.md b/clojure/README-content.md index a0fad409..b6f5f781 100644 --- a/clojure/README-content.md +++ b/clojure/README-content.md @@ -37,3 +37,11 @@ Then build and run the image. docker build -t my-clojure-app . docker run -it --rm --name my-running-app my-clojure-app + +## Compile your Lein/Clojure project into a jar from within the container. + +If you have an existing Lein/Clojure project, it's fairly straightforward to compile your project into a jar from a container. + + docker run -it --rm -v "$(pwd)":/usr/src/app -w /usr/src/app clojure lein uberjar + +This will build your project into a jar file located in your project's target/uberjar directory for you to use. diff --git a/clojure/README.md b/clojure/README.md index a2444c4d..557b01c7 100644 --- a/clojure/README.md +++ b/clojure/README.md @@ -38,6 +38,14 @@ Then build and run the image. docker build -t my-clojure-app . docker run -it --rm --name my-running-app my-clojure-app +## Compile your Lein/Clojure project into a jar from within the container. + +If you have an existing Lein/Clojure project, it's fairly straightforward to compile your project into a jar from a container. + + docker run -it --rm -v "$(pwd)":/usr/src/app -w /usr/src/app clojure lein uberjar + +This will build your project into a jar file located in your project's target/uberjar directory for you to use. + # User Feedback ## Issues