stackage/docker/01-build-server.sh
Jens Petersen 079410d332 revert to official awscli binary
the ubuntu awscli fails with errors like:

upload failed: unpack-dir/.stack-work/install/x86_64-linux-tinfo6/d7d205a89b6867ea4451395ec473d03fcbc958590d23b15706959684c77259fd/9.8.2/doc/zstd-0.1.3.0/zstd.haddock to s3://stackage-haddock/nightly-2024-07-11/zstd-0.1.3.0/zstd.haddock An error occurred (InvalidAccessKeyId) when calling the PutObject operation: The AWS Access Key Id you provided does not exist in our records.
2024-07-12 00:55:25 +08:00

24 lines
461 B
Bash
Executable File

#!/usr/bin/env bash
# This file contains setup needed for the build server to function at all.
set -exuo pipefail
mkdir -p /home/stackage
export LANG=C.UTF-8
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y curl unzip
# Install AWS CLI
mkdir -p /tmp/awscli
(
cd /tmp/awscli
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip -q awscliv2.zip
./aws/install --bin-dir /usr/bin
)
rm -rf /tmp/awscli