Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
CoWorking Pallet Profile
Clojure
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
resources
src/co_working
test/co_working
.gitignore
README.md
project.clj
todo.org

README.md

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 git@github.com: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.

Something went wrong with that request. Please try again.