2021-08-10 19:29:49 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -eux
|
|
|
|
|
|
|
|
function main() {
|
|
|
|
upgradeSystem
|
|
|
|
|
|
|
|
mkdir -p /usr/share/man/man1
|
|
|
|
apt -qqy install openjdk-11-jre-headless leiningen curl build-essential libz-dev zlib1g-dev
|
|
|
|
|
|
|
|
# shadow-cljs
|
|
|
|
npm install -g --save-dev shadow-cljs
|
|
|
|
|
2021-08-23 14:19:49 +00:00
|
|
|
# download kubeconform & graalvm
|
2021-08-10 19:29:49 +00:00
|
|
|
curl -Lo /tmp/kubeconform-v0.4.7.tar.gz https://github.com/yannh/kubeconform/releases/download/v0.4.7/kubeconform-linux-amd64.tar.gz
|
|
|
|
curl -Lo /tmp/graalvm-ce-java11-linux-amd64-21.2.0.tar.gz https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-21.2.0/graalvm-ce-java11-linux-amd64-21.2.0.tar.gz
|
|
|
|
|
2021-08-23 14:19:49 +00:00
|
|
|
# checksum
|
2021-08-10 19:29:49 +00:00
|
|
|
cd /tmp
|
|
|
|
sha256sum --check CHECKSUMS
|
|
|
|
|
2021-08-23 14:19:49 +00:00
|
|
|
# install kubeconform
|
2021-08-10 19:29:49 +00:00
|
|
|
tar -xf /tmp/kubeconform-v0.4.7.tar.gz
|
|
|
|
cp kubeconform /usr/local/bin
|
|
|
|
|
2021-08-23 14:19:49 +00:00
|
|
|
# install graalvm
|
2021-08-10 19:29:49 +00:00
|
|
|
tar -xzf graalvm-ce-java11-linux-amd64-21.2.0.tar.gz
|
|
|
|
mv graalvm-ce-java11-21.2.0 /usr/lib/jvm/
|
|
|
|
ln -s /usr/lib/jvm/graalvm-ce-java11-21.2.0 /usr/lib/jvm/graalvm
|
|
|
|
ln -s /usr/lib/jvm/graalvm/bin/gu /usr/local/bin
|
|
|
|
|
|
|
|
update-alternatives --install /usr/bin/java java /usr/lib/jvm/graalvm/bin/java 2
|
|
|
|
|
|
|
|
gu install native-image
|
|
|
|
ln -s /usr/lib/jvm/graalvm/bin/native-image /usr/local/bin
|
|
|
|
|
2021-08-23 14:19:49 +00:00
|
|
|
#install lein
|
|
|
|
/tmp/lein.sh
|
|
|
|
|
2021-08-10 19:29:49 +00:00
|
|
|
cleanupDocker
|
|
|
|
}
|
|
|
|
|
|
|
|
source /tmp/install_functions.sh
|
|
|
|
main
|