nrepl

https://github.com/nrepl/nrepl || https://nrepl.org
flowthing 2020-09-13T05:12:12.003900Z

I don’t know what the issue is, but I also worked on making a Docker image for running an nREPL server a while back, and ended up with this:

FROM clojure:openjdk-16-tools-deps-alpine
ENV NREPL_VERSION 0.8.0
ENTRYPOINT clojure -Sdeps "{:deps {nrepl/nrepl {:mvn/version \"$NREPL_VERSION\"}}}" --main nrepl.cmdline --bind 0.0.0.0 --port 1234
ADD healthcheck.clj .
HEALTHCHECK --interval=5s --timeout=30s --start-period=5s --retries=5 CMD clojure healthcheck.clj
EXPOSE 1234/tcp
Where healthcheck.clj looks like this:
(import '(<http://java.net|java.net> Socket))
(Socket. "localhost" 1234)
Not that the health check is necessary in your case. Anyway, it seems to work — at least I haven’t encountered the issue you describe. FWIW. 🙂

👀 1
dominicm 2020-09-13T11:33:13.004900Z

Both refactor-nrepl and cider-nrepl have difflib inlined at /