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.
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.