This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-10
Channels
- # announcements (16)
- # aws (1)
- # babashka (2)
- # beginners (33)
- # biff (2)
- # clj-kondo (13)
- # cljs-dev (1)
- # cljsrn (3)
- # clojars (6)
- # clojure (198)
- # clojure-australia (3)
- # clojure-europe (41)
- # clojure-france (3)
- # clojure-nl (2)
- # clojure-spec (7)
- # clojure-uk (12)
- # clojurescript (57)
- # clojureverse-ops (1)
- # code-reviews (3)
- # community-development (2)
- # conjure (10)
- # data-science (1)
- # datomic (15)
- # depstar (2)
- # docker (2)
- # etaoin (1)
- # events (1)
- # exercism (5)
- # fulcro (23)
- # helix (23)
- # introduce-yourself (4)
- # jobs (6)
- # kaocha (1)
- # lsp (11)
- # meander (107)
- # off-topic (8)
- # pathom (3)
- # polylith (33)
- # re-frame (23)
- # reagent (7)
- # reitit (28)
- # remote-jobs (3)
- # sci (1)
- # shadow-cljs (2)
- # specter (5)
- # sql (38)
- # tools-deps (72)
- # web-security (9)
- # xtdb (32)
Hey everyone, I'm considering a potentially breaking change to the official clojure docker images and wanted to get everyone's feedback on it first: For awhile now our images have used lein repl
, boot repl
, and clj
(which defaults to clj --repl
) as their CMDs and no ENTRYPOINTs.
Meaning if you provide your own command on a docker run, that will become the whole enchilada. E.g. docker run -ti clojure bash
gets you a bash prompt inside our image. that's useful sometimes.
but these are clojure images, after all, and it would be kind of nice if you could do things like this:
ā¢ docker run clojure:tools-deps -M -e '(+ 1 2)'
and have it print 3
ā¢ docker run clojure:lein version
and have it print Leiningen 2.9.6 on Java 11.0.12 OpenJDK 64-Bit Server VM
The change needed to do this is to put lein
, boot
, and clj
into the ENTRYPOINTs and change the CMDs to repl
, repl
, and -M --repl
(respectively). So then you override just the CMD w/ whatever trails your docker run
invocation, but you can still get a bash prompt with docker run -ti --entrypoint bash clojure
.
Thoughts?