Last active
December 14, 2015 00:29
-
-
Save dobladez/4998935 to your computer and use it in GitHub Desktop.
Babysteps trying to get started with Pallet and VirtualBox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; My project.clj: | |
(defproject projectname "0.1.0-SNAPSHOT" | |
:description "FIXME Pallet project for projectname" | |
:dependencies [[org.clojure/clojure "1.3.0"] | |
[org.cloudhoist/pallet "0.7.3"] | |
[org.cloudhoist/pallet-jclouds "1.4.3"] | |
[org.cloudhoist/pallet-vmfest "0.3.0-alpha.2"] | |
[org.virtualbox/vboxjws "4.2.6"] | |
;; To get started we include all jclouds compute providers. | |
;; You may wish to replace this with the specific jclouds | |
;; providers you use, to reduce dependency sizes. | |
[org.jclouds/jclouds-allblobstore "1.4.2"] | |
[org.jclouds/jclouds-allcompute "1.4.2"] | |
[org.jclouds.driver/jclouds-slf4j "1.4.2" | |
;; the declared version is old and can overrule the | |
;; resolved version | |
:exclusions [org.slf4j/slf4j-api]] | |
[org.jclouds.driver/jclouds-sshj "1.4.2"] | |
[ch.qos.logback/logback-classic "1.0.0"]] | |
:dev-dependencies [[org.cloudhoist/pallet | |
"0.7.3" :type "test-jar"] | |
[org.cloudhoist/pallet-lein "0.5.2"]] | |
:profiles {:dev | |
{:dependencies | |
[[org.cloudhoist/pallet "0.7.3" :classifier "tests"]] | |
:plugins [[org.cloudhoist/pallet-lein "0.5.2"]]}} | |
:local-repo-classpath true | |
:repositories | |
{"sonatype-snapshots" "https://oss.sonatype.org/content/repositories/snapshots" | |
"sonatype" "https://oss.sonatype.org/content/repositories/releases/"} | |
:repl-options {:init (do (require 'projectname.repl) | |
(projectname.repl/force-slf4j))}) | |
;;; repl session | |
$ lein repl | |
nREPL server started on port 35230 | |
REPL-y 0.1.9 | |
Clojure 1.3.0 | |
Exit: Control+D or (exit) or (quit) | |
Commands: (user/help) | |
Docs: (doc function-name-here) | |
(find-doc "part-of-name-here") | |
Source: (source function-name-here) | |
(user/sourcery function-name-here) | |
Javadoc: (javadoc java-object-or-class-here) | |
Examples from clojuredocs.org: [clojuredocs or cdoc] | |
(user/clojuredocs name-here) | |
(user/clojuredocs "ns-here" "name-here") | |
user=> (use '[pallet.configure :only [compute-service]]) | |
nil | |
user=> (require 'pallet.compute.vmfest) | |
nil | |
user=> (def vmfest (compute-service "vmfest")) | |
FileNotFoundException /home/ferd/.pallet/config.clj (No such file or directory) java.io.FileInputStream.open (FileInputStream.java:-2) | |
user=> vmfest | |
#<Unbound Unbound: #'user/vmfest> | |
user=> (def vmfest (compute-service "vmfest")) | |
FileNotFoundException /home/ferd/.pallet/config.clj (No such file or directory) java.io.FileInputStream.open (FileInputStream.java:-2) | |
user=> vmfest | |
#<Unbound Unbound: #'user/vmfest> | |
user=> Bye for now! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment