Skip to content

Latest commit

 

History

History
66 lines (45 loc) · 1.33 KB

README.md

File metadata and controls

66 lines (45 loc) · 1.33 KB

co-working

Co-working is a Pallet library designed to launch a server on a cloud provider of your choosing.

The server can be optionally configured for shared development in multiple language environments.

Installation && Quickstart

Install https://github.com/technomancy/leiningen.

Currently leiningen 1 is required.

###Clone the library

git clone [email protected]:PHLClojure/co-working.git
cd co-working

###Get dependencies with leiningen

lein deps

###Configure provider access credentials.

lein pallet add-service aws aws-ec2 "your-aws-key" "your-aws-secret-key"

Note that this creates a ~/.pallet/services/aws.clj file with your credentials in it.

The second argument above is the name of the jclouds provider, which is cloud specific. To find the value for other clouds, you can list the supported providers with:

lein pallet providers

###Prepare the REPL

lein repl
(use 'co-working.core) (in-ns 'co-working.core)

Usage

###Launch a node

(def cap (core/converge {co-worker-cs 1} :compute aws-srvc))

###Destroy all running nodes

(def cap (core/converge {co-worker-cs 0} :compute aws-srvc))

License

Copyright © 2012 PHLCLJ, Hunter Hutchinson

Distributed under the Eclipse Public License, the same as Clojure.