fix: add unzip to awscli builders
requested to merge kadse-xyz/gitlab/gitlab-omnibus-builder:bugfix/add-unzip-to-awscli-builders into master
unzip
seems to be missing in the rpi* awscli builders images. This leads the installation of awscli to fail.
Relevant logs
> [6/6] RUN set -eux; case "arm" in arm64) export CPU_TYPE="aarch64" ;; arm) export CPU_TYPE="armv6l" ;; s390x) export CPU_TYPE="s390x" ;; *) export CPU_TYPE="x64_64" ;; esac; case "${CPU_TYPE}" in armv6l) pip3 install --upgrade -Iv virtualenv==16.7.10 pip ; export BOOTLOADER_PATH="/usr/local/lib/python3.9/dist-packages/PyInstaller/bootloader" ; curl -fsSL "https://github.com/aws/aws-cli/archive/2.7.18.tar.gz" | tar -xzC /tmp && cd /tmp/aws-cli-2.7.18 && pip3 install -r requirements.txt && cp -r ${BOOTLOADER_PATH}/Linux-32bit-arm ${BOOTLOADER_PATH}/Linux-32bit-aarch && python3 ./scripts/installers/make-exe --output=/tmp/awscli.zip ;; s390x) curl -fsSL "https://github.com/pyinstaller/pyinstaller/releases/download/v3.5/PyInstaller-3.5.tar.gz" | tar -xzC /tmp && cd /tmp/PyInstaller-3.5/bootloader && python3 ./waf all && cd /tmp/PyInstaller-3.5 && python3 setup.py install && rm -Rf /tmp/PyInstaller-3.5 ; pip3 install --upgrade -Iv pip ; export BOTOCORE_COMMIT_ID="5813c52" ; curl -fsSL "https://github.com/aws/aws-cli/archive/2.7.18.tar.gz" | tar -xzC /tmp && cd /tmp/aws-cli-2.7.18 && sed -i "s|botocore/zipball/v2|botocore/zipball/${BOTOCORE_COMMIT_ID}|" requirements.txt && python3 ./scripts/installers/make-exe --output=/tmp/awscli.zip && rm -Rf /tmp/aws-cli-2.7.18 ;; *) curl -Lo /tmp/awscli.zip "https://awscli.amazonaws.com/awscli-exe-linux-${CPU_TYPE}-2.7.18.zip" ;; esac; unzip -qd /tmp/ /tmp/awscli.zip && /tmp/aws/install && aws --version:
#12 318.1 35051 INFO: Building COLLECT COLLECT-00.toc completed successfully.
#12 334.3
#12 334.3 Update metadata values {'distribution_source': 'exe'}
#12 334.3 Copying contents of /tmp/aws-cli-2.7.18/exe/pyinstaller/dist/aws_completer into /tmp/tmpe5tnc9av/aws/dist
#12 334.3 Copying contents of /tmp/aws-cli-2.7.18/exe/assets into /tmp/tmpe5tnc9av/aws
#12 334.3 Deleted build directory: /tmp/aws-cli-2.7.18/exe/pyinstaller/build
#12 334.3 Deleted build directory: /tmp/aws-cli-2.7.18/exe/pyinstaller/dist
#12 334.3 Exe build is available at: /tmp/awscli.zip
#12 334.3 + unzip -qd /tmp/ /tmp/awscli.zip
#12 334.3 /bin/sh: 1: unzip: not found
Edited by Jason Plum