Clojure CLI + Babashka

This notebook creates docker image with the Clojure CLI and Babashka installed.

Install the one missing dependency, rlwrap, as well as git.

apt-get -qq update
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends \
  rlwrap
apt-get clean
rm -rf /var/lib/apt/lists/*
6.9s

Next, download and run the Clojure CLI installer.

echo ${CLOJURE_VERSION}
0.5s
wget -q --show-progress --progress=bar:force -P . \
  https://download.clojure.org/install/linux-install-${CLOJURE_VERSION}.sh
0.8s
/bin/bash ./linux-install-${CLOJURE_VERSION}.sh
1.0s
rm ./linux-install-${CLOJURE_VERSION}.sh
0.2s

Test clojure from the command line.

clojure -e "(clojure-version)"
5.5s

Install the latest babashka

curl -sLO https://raw.githubusercontent.com/babashka/babashka/master/install
chmod +x install
./install
3.6s
rm install
0.2s

Test babashka from the command line.

bb -e "(System/getProperty \"babashka.version\")"
0.7s
Runtimes (1)