Skip to content

Instantly share code, notes, and snippets.

@ragnard
Last active August 29, 2015 14:05
Show Gist options
  • Save ragnard/610846838be289436385 to your computer and use it in GitHub Desktop.
Save ragnard/610846838be289436385 to your computer and use it in GitHub Desktop.
lein-docker
(defproject my-project
...
:plugins [[lein-docker "0.1.0-SNAPSHOT"]]
:docker {:image "ragge/clojure"
:ports {3000 8080}
:env {"SECRET_KEY" "lolcat"}}
...)
$ hostname
my-awesome-dev-machine
$ lein docker repl
nREPL server started on port 46942 on host 127.0.0.1
REPL-y 0.2.1
Clojure 1.5.1
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Source: (source function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Exit: Control+D or (exit) or (quit)
Results: Stored in vars *1, *2, *3, an exception in *e
my-project.core=> (.. java.net.InetAddress getLocalHost getHostName)
(.. java.net.InetAddress getLocalHost getHostName)
"b1f9c58a799a"
my-project.core=>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment