Skip to content

Commit

Permalink
Use deb10 variant of ghc images
Browse files Browse the repository at this point in the history
  • Loading branch information
jhrcek committed Aug 12, 2024
1 parent 5e0c624 commit b7e6a25
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
13 changes: 7 additions & 6 deletions 9.6/bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,16 @@ ARG GHC_RELEASE_KEY=88B57FCF7DB53B4DB3BFA4B1588764FBE22D19C4
RUN set -eux; \
cd /tmp; \
ARCH="$(dpkg-architecture --query DEB_BUILD_GNU_CPU)"; \
GHC_URL="https://downloads.haskell.org/~ghc/$GHC/ghc-$GHC-$ARCH-deb11-linux.tar.xz"; \
# Note: there are is no 'aarch64' variant of deb11 (bullseye) images in https://downloads.haskell.org/~ghc/9.6.6/
# but deb10 (buster) images should be binary compatible with deb11, so using deb10 instead
GHC_URL="https://downloads.haskell.org/~ghc/$GHC/ghc-$GHC-$ARCH-deb10-linux.tar.xz"; \
# sha256 from https://downloads.haskell.org/~ghc/$GHC/SHA256SUMS
case "$ARCH" in \
# TODO 'aarch64' not available in https://downloads.haskell.org/~ghc/9.6.6/
# 'aarch64') \
# GHC_SHA256='58d5ce65758ec5179b448e4e1a2f835924b4ada96cf56af80d011bed87d91fef'; \
# ;; \
'aarch64') \
GHC_SHA256='58d5ce65758ec5179b448e4e1a2f835924b4ada96cf56af80d011bed87d91fef'; \
;; \
'x86_64') \
GHC_SHA256='a34bdfc1f65b000135d9c8eb12d69670026a64043a8b33ef5ba24b0f8e28d046'; \
GHC_SHA256='15ee68cede5d114a672fb468b9545700edd70a68724ab4e9122c8a23aba8570b'; \
;; \
*) echo >&2 "error: unsupported architecture '$ARCH'" ; exit 1 ;; \
esac; \
Expand Down
13 changes: 7 additions & 6 deletions 9.6/slim-bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,16 @@ ARG GHC_RELEASE_KEY=88B57FCF7DB53B4DB3BFA4B1588764FBE22D19C4
RUN set -eux; \
cd /tmp; \
ARCH="$(dpkg-architecture --query DEB_BUILD_GNU_CPU)"; \
GHC_URL="https://downloads.haskell.org/~ghc/$GHC/ghc-$GHC-$ARCH-deb11-linux.tar.xz"; \
# Note: there are is no 'aarch64' variant of deb11 (bullseye) images in https://downloads.haskell.org/~ghc/9.6.6/
# but deb10 (buster) images should be binary compatible with deb11, so using deb10 instead
GHC_URL="https://downloads.haskell.org/~ghc/$GHC/ghc-$GHC-$ARCH-deb10-linux.tar.xz"; \
# sha256 from https://downloads.haskell.org/~ghc/$GHC/SHA256SUMS
case "$ARCH" in \
# TODO 'aarch64' not available in https://downloads.haskell.org/~ghc/9.6.6/
# 'aarch64') \
# GHC_SHA256='58d5ce65758ec5179b448e4e1a2f835924b4ada96cf56af80d011bed87d91fef'; \
# ;; \
'aarch64') \
GHC_SHA256='58d5ce65758ec5179b448e4e1a2f835924b4ada96cf56af80d011bed87d91fef'; \
;; \
'x86_64') \
GHC_SHA256='a34bdfc1f65b000135d9c8eb12d69670026a64043a8b33ef5ba24b0f8e28d046'; \
GHC_SHA256='15ee68cede5d114a672fb468b9545700edd70a68724ab4e9122c8a23aba8570b'; \
;; \
*) echo >&2 "error: unsupported architecture '$ARCH'" ; exit 1 ;; \
esac; \
Expand Down

0 comments on commit b7e6a25

Please sign in to comment.