Last active
August 29, 2015 14:05
-
-
Save ragnard/610846838be289436385 to your computer and use it in GitHub Desktop.
lein-docker
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
(defproject my-project | |
... | |
:plugins [[lein-docker "0.1.0-SNAPSHOT"]] | |
:docker {:image "ragge/clojure" | |
:ports {3000 8080} | |
:env {"SECRET_KEY" "lolcat"}} | |
...) |
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
$ 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