The alpine images dont work, because they dont have rlwrap.
[felix@stormwind cookidoom-clj ]$ docker run clojure:temurin-21-tools-deps-alpine
/usr/local/bin/rlwrap: line 13: /usr/bin/rlwrap: not foundNoe we have add-libwhich allows to add libraries dynamically.
new issue: https://github.com/Quantisan/docker-clojure/issues/241
thanks for flagging!
I am unclear why the entry point would be clj for any image.
Are we expecting the main use of the docker image to type clojure code in the basic repl prompt that clj and rlwrap provide?
Running clj also seems to be unusual if the default is to package both Clojure CLI and Leiningen.
Would it make more sense to run a shell prompt as the default, then the relevant tool can be run.
You can run it with docker run clojure:temurin-21-tools-deps-alpine clojure for now, but yeah, this is an issue I've tried to fix before and haven't completed it.
I just switched to the ubuntu flavor. For alpine, we can just apk rlwrap and then it works.
Unless running an interactive repl prompt from within docker, rlwrap is not needed.
Only the clj wrapper script requires rlwrap. The actual clojure command does not require rlwrap
Sure, but the entry point of the image is clj afaiu.
Probably everyone will override this anyways. but still.. could be cleaner.
Surely that is a bug with the image then 🤷