From 13bbc25045e08a1dc675f01e5daf0e3324b50034 Mon Sep 17 00:00:00 2001 From: AJ Schmidt Date: Wed, 15 Nov 2023 10:08:37 -0500 Subject: [PATCH] rm unnecessary tools --- build.pkr.hcl | 5 ----- scripts/installers/cmake.sh | 15 --------------- scripts/installers/go.sh | 15 --------------- scripts/installers/miniconda.sh | 14 -------------- scripts/installers/nodejs.sh | 13 ------------- scripts/installers/rust.sh | 18 ------------------ 6 files changed, 80 deletions(-) delete mode 100755 scripts/installers/cmake.sh delete mode 100755 scripts/installers/go.sh delete mode 100755 scripts/installers/miniconda.sh delete mode 100755 scripts/installers/nodejs.sh delete mode 100755 scripts/installers/rust.sh diff --git a/build.pkr.hcl b/build.pkr.hcl index 981d259..74c8df6 100644 --- a/build.pkr.hcl +++ b/build.pkr.hcl @@ -36,17 +36,12 @@ build { // Remaining Packages "${path.root}/scripts/installers/awscli.sh", - "${path.root}/scripts/installers/cmake.sh", "${path.root}/scripts/installers/docker.sh", // TODO: add nvidia-container-toolkit "${path.root}/scripts/installers/gh.sh", "${path.root}/scripts/installers/git.sh", - "${path.root}/scripts/installers/go.sh", - "${path.root}/scripts/installers/miniconda.sh", - "${path.root}/scripts/installers/nodejs.sh", "${path.root}/scripts/installers/python.sh", "${path.root}/scripts/installers/runner.sh", - "${path.root}/scripts/installers/rust.sh", // Cleanup "${path.root}/scripts/installers/cleanup.sh", diff --git a/scripts/installers/cmake.sh b/scripts/installers/cmake.sh deleted file mode 100755 index 5e2d395..0000000 --- a/scripts/installers/cmake.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash -set -euo pipefail - -source "${NV_HELPER_SCRIPTS}/github.sh" - -LATEST_VERSION=$(get_github_latest_release_version "KitWare/CMake") -CHECKSUM="https://github.com/Kitware/CMake/releases/download/v${LATEST_VERSION}/cmake-${LATEST_VERSION}-SHA-256.txt" -PKG="https://github.com/Kitware/CMake/releases/download/v${LATEST_VERSION}/cmake-${LATEST_VERSION}-linux-$(arch).tar.gz" - -wget -q "${PKG}" "${CHECKSUM}" - -grep "^$(sha256sum cmake-*.tar.gz)$" cmake-*-SHA-256.txt -sudo tar --strip-components=1 -C /usr/local -xzf cmake-*.tar.gz -cmake --version -sudo rm -rf ./cmake-* diff --git a/scripts/installers/go.sh b/scripts/installers/go.sh deleted file mode 100755 index 00e8181..0000000 --- a/scripts/installers/go.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash -set -euo pipefail - -LATEST_GO_VERSION=$(curl -s https://go.dev/VERSION?m=text | head -n1) - -GO_URL="https://dl.google.com/go/${LATEST_GO_VERSION}.linux-${NV_ARCH}.tar.gz" -GO_SHA_URL="${GO_URL}.sha256" - -wget -q "${GO_URL}" "${GO_SHA_URL}" -diff --ignore-trailing-space <(sha256sum go*.tar.gz | awk '{ print $1; }') go*.tar.gz.sha256 -sudo tar -C /usr/local -xzf go*.tar.gz - -sudo sed -i '/^PATH=/ s|=\"|=\"/usr/local/go/bin:|' /etc/environment -PATH=$PATH:/usr/local/go/bin go version -sudo rm -rf go*.tar.gz* diff --git a/scripts/installers/miniconda.sh b/scripts/installers/miniconda.sh deleted file mode 100755 index 08c37ca..0000000 --- a/scripts/installers/miniconda.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash -set -euo pipefail - -curl -fsSL https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-$(arch).sh -o miniforge.sh -chmod +x miniforge.sh -sudo ./miniforge.sh -b -p /usr/share/miniforge - -CONDA=/usr/share/miniforge -echo "CONDA=$CONDA" | sudo tee --append /etc/environment - -sudo ln -s $CONDA/bin/conda /usr/bin/conda - -conda --version -sudo rm -rf miniforge.sh diff --git a/scripts/installers/nodejs.sh b/scripts/installers/nodejs.sh deleted file mode 100755 index 79d2fbe..0000000 --- a/scripts/installers/nodejs.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -set -euo pipefail - -curl -fsSL https://raw.githubusercontent.com/tj/n/master/bin/n -o ~/n -sudo bash ~/n lts - -# fix global modules installation as regular user -# related issue https://github.com/actions/runner-images/issues/3727 -sudo chmod -R 777 /usr/local/lib/node_modules -sudo chmod -R 777 /usr/local/bin - -node --version -rm -rf ~/n diff --git a/scripts/installers/rust.sh b/scripts/installers/rust.sh deleted file mode 100755 index fa8ee69..0000000 --- a/scripts/installers/rust.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -set -euo pipefail - -curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \ - | sh -s -- -y --default-toolchain=stable --profile=minimal -source "${HOME}/.cargo/env" - -# TODO: These take forever to compile/install. Determine whether we want to keep -# them or drop them. If we keep them, we might want to consider adding more CPU/memory -# resources to increase compile speed. -# -# Install common tools -# rustup component add rustfmt clippy -# cargo install bindgen-cli cbindgen cargo-audit cargo-outdated -# Cleanup Cargo cache -# rm -rf "${HOME}/.cargo/registry/"* - -rustc --version