|
4 | 4 | install-distro-deps uninstall-distro-build-deps]]))
|
5 | 5 |
|
6 | 6 | (defn prereqs [dir _variant]
|
7 |
| - (copy-resource-file! dir "rlwrap.retry" identity |
| 7 | + (copy-resource-file! dir "clj.sh" identity |
8 | 8 | #(.setExecutable % true false)))
|
9 | 9 |
|
10 | 10 | (def distro-deps
|
11 | 11 | {:debian-slim {:build #{"curl"}
|
12 |
| - :runtime #{"rlwrap" "make" "git"}} |
| 12 | + :runtime #{"rlfe" "make" "git"}} |
13 | 13 | :debian {:build #{"curl"}
|
14 |
| - :runtime #{"rlwrap" "make" "git"}} |
| 14 | + :runtime #{"rlfe" "make" "git"}} |
15 | 15 | :ubuntu {:build #{}
|
16 | 16 | ;; install curl as a runtime dep b/c we need it at build time
|
17 | 17 | ;; but upstream includes it so we don't want to uninstall it
|
18 |
| - :runtime #{"rlwrap" "make" "git" "curl"}} |
| 18 | + :runtime #{"rlfe" "make" "git" "curl"}} |
19 | 19 | :alpine {:build #{"curl"}
|
20 | 20 | :runtime #{"bash" "make" "git"}}})
|
21 | 21 |
|
|
24 | 24 | (def uninstall-build-deps (partial uninstall-distro-build-deps distro-deps))
|
25 | 25 |
|
26 | 26 | (def docker-bug-notice
|
27 |
| - ["# Docker bug makes rlwrap crash w/o short sleep first" |
28 |
| - "# Bug: https://github.com/moby/moby/issues/28009" |
29 |
| - "# As of 2021-09-10 this bug still exists, despite that issue being closed"]) |
| 27 | + ["# Custom \"clj\" script that uses rlfe instead of rlwrap"]) |
30 | 28 |
|
31 | 29 | (defn install [installer-hashes {:keys [build-tool-version] :as variant}]
|
32 | 30 | (let [install-dep-cmds (install-deps variant)
|
|
47 | 45 | "clojure -e \"(clojure-version)\""] (empty? uninstall-dep-cmds))
|
48 | 46 | (concat-commands uninstall-dep-cmds :end)
|
49 | 47 | (concat [""] docker-bug-notice
|
50 |
| - ["COPY rlwrap.retry /usr/local/bin/rlwrap"]) |
| 48 | + ["COPY clj.sh /usr/local/bin/clj"]) |
51 | 49 | (->> (remove nil?)))))
|
52 | 50 |
|
53 | 51 | (defn command [{:keys [jdk-version]}]
|
|
0 commit comments