Skip to content

Instantly share code, notes, and snippets.

@Vaguery
Last active April 30, 2017 15:33
Show Gist options
  • Save Vaguery/406565053f79eb4ad786353f4cbd3cb2 to your computer and use it in GitHub Desktop.
Save Vaguery/406565053f79eb4ad786353f4cbd3cb2 to your computer and use it in GitHub Desktop.
Building a clojure dev machine on a pristine Ubuntu 16.04 Docker image
# bash
apt-get update
# updates package list
apt-get install default-jre
apt-get install git
apt-get install wget
# oh yeah I need that too
# via http://stackoverflow.com/questions/25838169/installing-leiningen-2-on-ubuntu :
wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
chmod +x lein
mv lein /usr/local/bin
## download klapaucius
git clone https://github.com/Vaguery/klapaucius.git
cd klapaucius
@Vaguery
Copy link
Author

Vaguery commented Apr 27, 2017

Note: this leaves a bunch of complaints (since you're root in a Docker image) to set LEIN_ROOT. Whatever.

@Vaguery
Copy link
Author

Vaguery commented Apr 30, 2017

Notes on the bug-hunt:

  • install jdk and lein as normal above
  • lein repl (hit ENTER to get past root warning)
  • paste this into REPL prompt(s):
    (def arg (* 2 Math/E))
    (Math/log arg)
    ;; on Intel machines: 1.6931471805599452
    (assert (= (Math/log arg) 1.6931471805599452))
    ;; fails, because on ARMv8 it doesn't equal that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment