Просмотр исходного кода

Added an example of single line clojure usage.

Moghedrin 11 лет назад
Родитель
Сommit
593439579f
2 измененных файлов с 16 добавлено и 0 удалено
  1. 8 0
      clojure/README-content.md
  2. 8 0
      clojure/README.md

+ 8 - 0
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.

+ 8 - 0
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