Skip to content

Fix #5871 For AArch64, use Debian 10 rather than Ubuntu 20.04 #5876

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions etc/dockerfiles/arm64.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
FROM ubuntu:20.04
# Stack is built with GHC 9.2.4. GHC 9.2.4 for Linux/AArch64 says it was made on
# a Debian 10 system and requires GMP 6.1. Debian 10 is codename 'buster' and
# includes libc6 (2.28-10+deb10u1).
FROM debian:buster

RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
curl build-essential curl libffi-dev libffi7 libgmp-dev libgmp10 libncurses-dev libncurses5 libtinfo5 libnuma-dev xz-utils \
g++ gcc libc6-dev libffi-dev libgmp-dev make zlib1g-dev git gnupg netbase
curl build-essential curl libffi-dev libffi6 libgmp-dev libgmp10 \
libncurses-dev libncurses5 libtinfo5 libnuma-dev xz-utils g++ gcc \
libc6-dev libffi-dev libgmp-dev make zlib1g-dev git gnupg netbase

RUN cd /tmp && \
curl -L https://github.com/llvm/llvm-project/releases/download/llvmorg-9.0.1/clang+llvm-9.0.1-aarch64-linux-gnu.tar.xz --output /tmp/llvm.tar.xz && \
unxz /tmp/llvm.tar.xz && \
tar xfv /tmp/llvm.tar --strip-components 1 -C /usr && \
rm /tmp/llvm.tar

RUN curl -sSL https://github.com/commercialhaskell/stack/releases/download/v2.7.1/stack-2.7.1-linux-aarch64.bin > /usr/local/bin/stack && \
chmod +x /usr/local/bin/stack
RUN curl -L https://downloads.haskell.org/ghcup/unofficial-bindists/stack/2.7.5/stack-2.7.5-linux-aarch64.tar.gz --output /tmp/stack.tar.gz && \
tar xfv /tmp/stack.tar.gz -C /usr/local/bin && \
rm /tmp/stack.tar.gz

# RUN curl -sSL https://github.com/commercialhaskell/stack/releases/download/v2.7.1/stack-2.7.1-linux-aarch64.bin > /usr/local/bin/stack && \
RUN chmod +x /usr/local/bin/stack

ARG USERID
ARG GROUPID
Expand Down