Skip to content

PHLClojure/co-working

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

CoWorking Pallet Profile

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published