stackage/docker/01-build-server.sh
Jens Petersen ea2fead291 update docker image to Ubuntu/pid1 22.04 LTS
- drop embedding ghc and stack
- use libz3-dev
2022-12-30 23:03:37 +08:00

28 lines
578 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 awscliv2.zip
./aws/install --bin-dir /usr/bin
)
rm -rf /tmp/awscli
# Get Stack and GHC
#curl -sSL https://get.haskellstack.org/ | sh -s - -d /usr/bin
#stack setup --resolver ghc-$GHCVER