Running Clojure on OSv: easier with a new Capstan template

Running Clojure on OSv: Easier With a New Capstan Template

Clojure developers usually do not care too much about the underlying OS. The low-level differences between Linux, Mac OS, and even Microsoft Windows are abstracted away by the JVM.

When deploying Clojure code on the cloud, there used to be one default choice - Linux. But Linux is not an ideal OS for pure cloud services.

OSv is a new, open source OS, designed specifically for the cloud. Since OSv supports the standard JVM, it is ideal for running Clojure applications on the cloud. And the same configuration applies to building VMs for any cloud: public clouds such as Amazon’s and Google’s, private clouds based on VMware or KVM, or public and private OpenStack.

Porting a Clojure application to OSv was already pretty easy, but now it’s even easier. This blog post describes a new lein template for OSv.


Capstan works together with the Leinigen build tool.

First, create a new project skeleton.

lein new capstan new-app

Now, you can run Capstan to run your project on an a OSv VM.

cd new-app
capstan run

The template takes care of creating the project skeleton, including the Capstanfile. When this is done, you can use Capstan directly to build a new OSv VM, deploy it on the cloud, or upload it to the public repository.


For more info on Capstan and other OSv subjects, please join the osv-dev mailing list.
You can get updates on by subscribing to the OSv blog RSS feed or following @CloudiusSystems on Twitter.