From af600f4656b8ed1492d57b75807c8649f3644236 Mon Sep 17 00:00:00 2001 From: Svetoslav Neykov Date: Mon, 17 Jul 2017 16:25:47 +0300 Subject: [PATCH 1/2] Remove Clojure references, support removed from core --- start/compute.md | 62 ------------------------------------------------ 1 file changed, 62 deletions(-) diff --git a/start/compute.md b/start/compute.md index 89eb3fb1..70f6af19 100644 --- a/start/compute.md +++ b/start/compute.md @@ -552,68 +552,6 @@ without having to resort to OS-specific scripts. This enables developers to expr to deal with the gory details of various OS flavors. To see the commands that will be executed, print the result of `Statement.render(OsFamily.UNIX)`, for example. - - -## Clojure -## Setup - * install [lein](http://github.com/technomancy/leiningen) - * `lein new mygroup/myproject` - * `cd myproject` - * `vi project.clj` - * for jclouds 1.1 and earlier (clojure 1.2 only) - -{% highlight clojure %} -(defproject mygroup/myproject "1.0.0" - :description "FIXME: write" - :dependencies [[org.clojure/clojure "1.2.0"] - [org.clojure/clojure-contrib "1.2.0"] - [org.jclouds/jclouds-allcompute "1.1.0"]]) -{% endhighlight %} - - * for jclouds 1.2 / snapshot (clojure 1.2 and 1.3) -{% highlight clojure %} -(defproject mygroup/myproject "1.0.0" - :description "FIXME: write" - :dependencies [[org.clojure/clojure "1.3.0"] - [org.clojure/core.incubator "0.1.0"] - [org.clojure/tools.logging "0.2.3"] - [org.jclouds/jclouds-allcompute "1.2.0-SNAPSHOT"]] - :repositories {"jclouds-snapshot" "https://oss.sonatype.org/content/repositories/snapshots"}) -{% endhighlight %} - - * `lein deps` - - -### Usage -Execute `lein repl` to get a repl, then paste the following or write your own code. Clearly, -you need to substitute your accounts and keys below. - -{% highlight clojure %} -(use 'org.jclouds.compute) - -(with-compute-service ["cloudservers" "email" "password"] - (nodes)) -{% endhighlight %} - -The above will list all nodes with cloudservers. Here's an example of creating and running a small linux node with the group webserver, using ssh and log4j extensions: - -{% highlight clojure %} -(def provider "cloudservers") -(def user "email") -(def password "password") - -(def my-compute - (compute-service provider user password :ssh :log4j)) - -(create-node "webserver" my-compute) -{% endhighlight %} - -You'll likely want to run the following when you're done: - -{% highlight clojure %} -(destroy-nodes-in-group "webserver" my-compute) -{% endhighlight %} - ## Tools We've looked at many tools and chosen a few to spend time integrating with. From 94b98475f77b0ed6b9d9e3db2e05209b19c523f4 Mon Sep 17 00:00:00 2001 From: Svetoslav Neykov Date: Mon, 17 Jul 2017 16:26:18 +0300 Subject: [PATCH 2/2] Remove reference to the non-existent pages --- start/compute.md | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/start/compute.md b/start/compute.md index 70f6af19..71ad08d6 100644 --- a/start/compute.md +++ b/start/compute.md @@ -334,9 +334,6 @@ If you are using the Log4JLoggingModule, here is an example log4j.xml stanza you {% endhighlight %} -## Usage in Google AppEngine -Please see [][UsingJCloudsWithGAE]] - ## Advanced Usage Almost all advanced features require ssh. You will likely also want to use log4j and our enterprise configuration module. Here's how to configure these. @@ -551,13 +548,3 @@ The jclouds API allows many `Statements` to be built entirely from high-level co without having to resort to OS-specific scripts. This enables developers to express what they mean without having to deal with the gory details of various OS flavors. To see the commands that will be executed, print the result of `Statement.render(OsFamily.UNIX)`, for example. - -## Tools - -We've looked at many tools and chosen a few to spend time integrating with. -These tools enable developers to focus on working code, as opposed to
build and infrastructure engineering - -### Ant - -Please check [[ApacheAntComputeGuide]] on how to use ant for compute API tasks. -