diff --git a/schutzbot/manifest-tests-install-deps.sh b/schutzbot/manifest-tests-install-deps.sh new file mode 100755 index 00000000..14a48177 --- /dev/null +++ b/schutzbot/manifest-tests-install-deps.sh @@ -0,0 +1,78 @@ +#!/bin/bash +set -euxo pipefail + +# Get OS details. +source /etc/os-release +ARCH=$(uname -m) + +# btrfs is not available on RHEL and CentOS. +if [[ "${ID}" == "fedora" ]]; then + sudo dnf install -y btrfs-progs-devel +fi + +sudo dnf -y install \ + gcc \ + git-core \ + go \ + gpgme-devel \ + osbuild-depsolve-dnf \ + osbuild-tools \ + device-mapper-devel \ + unzip + +# Install awscli +WORKDIR=$(mktemp -d) +pushd "${WORKDIR}" + +# Import the AWS CLI public key. +AWSCLI_PUB_KEY="awscliv2.pubkey" +cat < /dev/null + +# Verify the installation. +aws --version +popd +rm -rf "${WORKDIR}" \ No newline at end of file