1818
1919echo " Running apt-get update"
2020apt-get update
21- # uninstall unnecessary packages
22- echo " Removing unnecessary packages"
23- apt-get remove -y \
24- python3
21+
2522# install necessary libraries for asdf and language runtimes
2623echo " Installing necessary packages"
2724apt-get -y install --no-install-recommends htop vim curl git build-essential \
@@ -35,32 +32,32 @@ apt-get -y install --no-install-recommends htop vim curl git build-essential \
3532# install aws stuff
3633# Download correct AWS CLI for arch
3734if [ " $TARGETARCH " = " arm64" ] || [ " $TARGETARCH " == " aarch64" ]; then
38- wget -O /tmp/awscliv2.zip " https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" ; \
35+ wget -O /tmp/awscliv2.zip --no-verbose " https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip"
3936 else
40- wget -O /tmp/awscliv2.zip " https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" ; \
37+ wget -O /tmp/awscliv2.zip --no-verbose " https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip"
4138 fi
42- unzip /tmp/awscliv2.zip -d /tmp/aws-cli
39+ unzip -q /tmp/awscliv2.zip -d /tmp/aws-cli
4340 /tmp/aws-cli/aws/install
4441 rm /tmp/awscliv2.zip
4542 rm -rf /tmp/aws-cli
4643
4744# Download correct SAM CLI for arch
4845if [ " $TARGETARCH " = " arm64" ] || [ " $TARGETARCH " = " aarch64" ]; then
49- wget -O /tmp/aws-sam-cli.zip " https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-arm64.zip" ; \
46+ wget -O /tmp/aws-sam-cli.zip --no-verbose " https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-arm64.zip"
5047 else
51- wget -O /tmp/aws-sam-cli.zip " https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip" ; \
48+ wget -O /tmp/aws-sam-cli.zip --no-verbose " https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip"
5249 fi
53- unzip /tmp/aws-sam-cli.zip -d /tmp/aws-sam-cli
50+ unzip -q /tmp/aws-sam-cli.zip -d /tmp/aws-sam-cli
5451 /tmp/aws-sam-cli/install
5552 rm /tmp/aws-sam-cli.zip
5653 rm -rf /tmp/aws-sam-cli
5754
5855# Install ASDF
5956ASDF_VERSION=$( awk ' !/^#/ && NF {print $1; exit}' /tmp/.tool-versions.asdf)
6057if [ " $TARGETARCH " = " arm64" ] || [ " $TARGETARCH " == " aarch64" ]; then
61- wget -O /tmp/asdf.tar.gz " https://github.com/asdf-vm/asdf/releases/download/v${ASDF_VERSION} /asdf-v${ASDF_VERSION} -linux-arm64.tar.gz" ; \
58+ wget -O /tmp/asdf.tar.gz --no-verbose " https://github.com/asdf-vm/asdf/releases/download/v${ASDF_VERSION} /asdf-v${ASDF_VERSION} -linux-arm64.tar.gz"
6259else
63- wget -O /tmp/asdf.tar.gz " https://github.com/asdf-vm/asdf/releases/download/v${ASDF_VERSION} /asdf-v${ASDF_VERSION} -linux-amd64.tar.gz" ; \
60+ wget -O /tmp/asdf.tar.gz --no-verbose " https://github.com/asdf-vm/asdf/releases/download/v${ASDF_VERSION} /asdf-v${ASDF_VERSION} -linux-amd64.tar.gz"
6461fi
6562tar -xzf /tmp/asdf.tar.gz -C /tmp
6663mkdir -p /usr/bin
0 commit comments