This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-13
Channels
- # beginners (99)
- # boot (2)
- # boot-dev (4)
- # chestnut (2)
- # cider (75)
- # clara (43)
- # cljs-dev (1)
- # cljsjs (6)
- # cljsrn (4)
- # clojars (2)
- # clojure (76)
- # clojure-brasil (1)
- # clojure-france (1)
- # clojure-italy (2)
- # clojure-spec (30)
- # clojure-uk (4)
- # clojurescript (39)
- # core-async (1)
- # core-logic (2)
- # cursive (1)
- # data-science (7)
- # datomic (14)
- # docker (12)
- # emacs (6)
- # fulcro (69)
- # garden (4)
- # hoplon (7)
- # jobs-discuss (46)
- # leiningen (3)
- # lumo (3)
- # off-topic (12)
- # om (2)
- # parinfer (12)
- # perun (9)
- # re-frame (44)
- # reagent (6)
- # rum (1)
- # shadow-cljs (73)
- # specter (5)
- # unrepl (10)
- # vim (2)
Is anyone doing development using inf-clojure and lein to connect to a socket repl running in a Docker container? I can connect to the repl while inside the container, but when I try to connect from the host I get
telnet 0.0.0.0 5555
Trying 0.0.0.0...
Connected to 0.0.0.0.
Escape character is '^]'.
Connection closed by foreign host.
-Dclojure.server.repl='{:port 5555 :accept clojure.core.server/repl :address "0.0.0.0"}'
@ghadi Thanks for the reply! I had actually tried setting :host in the jvm-opts in project.clj. I'm going to try your suggestion now.
I've tried a bunch of different options. I was about to try launching from the command option in my docker-compose.yml.
can you paste or DM the entrypoint from docker-compose.yml
and the relevant parts of project.clj
?
For a plain socket repl, you'd set that system property above in jvm-opts, and run lein run -m clojure.main
(or lein repl
which will give you a second repl using nREPL that you don't care about).
In docker-compose, you'll want to have a ports:
entry mapping "5555:5555"