on master help sign in
Revert "Install GHC via Stack"

This reverts commit 034c6e928f30dcea3452a82fe4ece4c5c29b4b4c.

commitcea8e2c191d9f934db7976ea8371adda921485e5 authorMichael Snoyman <michael@snoyman.com> dateWed 6 Mar 2019, 13:52 (8 years ago) parentc321990
2 files changed+7−16
Dockerfile+1−2 debian-bootstrap.sh+6−14
Dockerfile+1−2
@@ -2,10 +2,9 @@ FROM fpco/pid1:16.04
22
33ENV HOME /home/stackage
44ENV LANG en_US.UTF-8
5−ENV GHCVER 8.6.4
65
76# NOTE: also update debian-bootstrap.sh when cuda version changes
8−ENV PATH /home/stackage/.stack/programs/x86_64-linux/ghc-$GHCVER/bin:/usr/local/cuda-10.0/bin:/usr/sbin:/usr/bin:/sbin:/bin
7+ENV PATH /usr/local/cuda-10.0/bin:/opt/ghc/8.6.4/bin:/usr/sbin:/usr/bin:/sbin:/bin
98ENV CUDA_PATH /usr/local/cuda-10.0
109ENV LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64:/usr/local/cuda-10.0/nvvm/lib64
1110
debian-bootstrap.sh+6−14
@@ -10,20 +10,11 @@
1010# instructions, see:
1111# http://www.stackage.org/install
1212
13−set -exuo pipefail
13+set -exu
1414
1515mkdir /home/stackage -p
1616
1717export DEBIAN_FRONTEND=noninteractive
18−
19−# Get curl
20−apt-get update
21−apt-get install -y curl
22−
23−# Get Stack and GHC
24−curl -sSL https://get.haskellstack.org/ | sh -s - -d /usr/bin
25−stack setup --resolver ghc-$GHCVER
26−
2718apt-get update
2819apt-get install -y software-properties-common
2920
@@ -173,6 +164,11 @@ ACCEPT_EULA=Y apt-get install msodbcsql17 -y
173164
174165locale-gen en_US.UTF-8
175166
167+curl -sSL https://get.haskellstack.org/ | sh
168+
169+# Put documentation where we expect it
170+mv /opt/ghc/$GHCVER/share/doc/ghc-$GHCVER/ /opt/ghc/$GHCVER/share/doc/ghc
171+
176172# llvm-5.0 for GHC (separate since it needs wget)
177173wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \
178174 && add-apt-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main" \
@@ -308,7 +304,3 @@ export CLANG_PURE_LLVM_INCLUDE_DIR=/usr/lib/llvm-3.9/include;
308304# finally run:
309305ldconfig
310306# EOF: don't build anything below this line
311−
312−# Cleanup
313−apt-get clean
314−rm -rf /var/lib/apt/lists/*