dda-devops-build/infrastructure/clj-cljs/image/resources/install.sh

45 lines
1.3 KiB
Bash
Raw Normal View History

#!/bin/bash
2023-12-07 19:38:43 +00:00
set -exo pipefail
function main() {
2023-12-07 19:38:43 +00:00
{
upgradeSystem
mkdir -p /usr/share/man/man1
2024-04-12 14:02:27 +00:00
apt-get -qqy install curl openjdk-17-jre-headless leiningen
# shadow-cljs
2023-12-07 19:38:43 +00:00
npm install -g npm
npm install -g --save-dev shadow-cljs
2021-08-23 14:19:49 +00:00
# download kubeconform & graalvm
2023-12-07 19:38:43 +00:00
kubeconform_version="0.6.4"
2024-04-12 14:02:27 +00:00
curl -SsLo /tmp/kubeconform-linux-amd64.tar.gz https://github.com/yannh/kubeconform/releases/download/v${kubeconform_version}/kubeconform-linux-amd64.tar.gz
2023-12-07 19:38:43 +00:00
curl -SsLo /tmp/CHECKSUMS https://github.com/yannh/kubeconform/releases/download/v${kubeconform_version}/CHECKSUMS
# checksum kubeconform
checksum
2021-08-23 14:19:49 +00:00
# install kubeconform
2024-04-12 14:02:27 +00:00
tar -C /usr/local/bin -xf /tmp/kubeconform-linux-amd64.tar.gz --exclude=LICENSE
2023-07-20 10:14:25 +00:00
#install pyb
2023-12-07 19:38:43 +00:00
apt-get -qqy install python3 python3-pip git
pip3 install pybuilder 'ddadevops>=4.7.0' deprecation dda-python-terraform boto3 pyyaml inflection --break-system-packages
2023-07-20 10:14:25 +00:00
2024-02-17 10:45:36 +00:00
#check
lein --help
cleanupDocker
2023-12-07 19:38:43 +00:00
} > /dev/null
}
function checksum() {
2024-04-12 14:02:27 +00:00
awk '{print $1 " /tmp/" $2}' /tmp/CHECKSUMS|sed -n '2p' > /tmp/kubeconform-checksum
cat /tmp/kubeconform-checksum
sha256sum -c --status /tmp/kubeconform-checksum
}
source /tmp/install_functions_debian.sh
DEBIAN_FRONTEND=noninteractive DEBCONF_NOWARNINGS=yes main