Skip to content

Porting Clojure applications to OSv

Ben Harris edited this page Aug 12, 2015 · 4 revisions

Porting of Clojure application to OSv is very similar to Porting Java applications to OSv. Assuming you already have an image with a JDK, you need to

  1. Create a Jar including Clojure, your application and any other dependency. The easiest way to do this is using lein uberjar

  2. Upload the Jar and any other require files to OSv. This can be does on:

  • runtime, using the file API
  • in advance, creating an OSv image using Capstan

Second method is both easier and more efficient, making the application ready-to-go as the VM boot.

Examples of Clojure application on OSv:

Clone this wiki locally