-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade to Debian 12 - yum-sync: backports is no longer needed - stackage: reorganize to fully utilize Debian built Haskell packages - ghcup: use Debian built Haskell packages
- Loading branch information
Showing
11 changed files
with
246 additions
and
571 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM ustcmirror/base:debian | ||
MAINTAINER Kai Ma <ksqsf@mail.ustc.edu.cn> | ||
ADD ["config", "sync.sh", "prepare.sh", "ghcupsync.hs", "ghcupsync.cabal", "/"] | ||
ADD ["sync.sh", "prepare.sh", "ghcupsync.hs", "/"] | ||
RUN bash /prepare.sh && rm prepare.sh |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
mkdir /root/.cabal | ||
mv config /root/.cabal/ | ||
HASKELL_DEPS="ghc libghc-aeson-dev libghc-lens-dev libghc-lens-aeson-dev \ | ||
libghc-network-uri-dev libghc-split-dev libghc-typed-process-dev \ | ||
libghc-yaml-dev" | ||
# Please use ldd to check the dependencies of compiled binary | ||
HASKELL_KEEP="libyaml-0-2" | ||
|
||
apt-get update | ||
apt-get install -y aria2 ca-certificates git wget xz-utils apt-utils build-essential curl libffi-dev libgmp-dev libgmp10 libncurses-dev libncurses5 libtinfo5 libnuma-dev | ||
apt-get install -y aria2 ca-certificates git $HASKELL_DEPS $HASKELL_KEEP | ||
|
||
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_MINIMAL=1 sh | ||
source /root/.ghcup/env | ||
ghcup install ghc 9.0.2 | ||
ghcup install cabal 3.6.2.0 | ||
ghcup set ghc 9.0.2 | ||
cabal update | ||
cabal build -O2 | ||
cp $(cabal list-bin -O2 ghcupsync) / | ||
# compile with Haskell language extensions | ||
ghc -O2 -XScopedTypeVariables -XOverloadedStrings ghcupsync.hs | ||
|
||
rm -rf /dist* /root/.cabal /root/.ghcup /root/.ghc && apt-get purge -y --auto-remove build-essential libffi-dev libgmp-dev libncurses-dev && rm -rf /var/lib/apt/lists/* | ||
rm -rf /ghcupsync.* && apt-get purge -y --auto-remove $HASKELL_DEPS && rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
FROM ustcmirror/base:debian | ||
MAINTAINER Jiahao Li <gloit042@gmail.com> | ||
ADD ["config", "sync.sh", "prepare.sh", "stackage.hs", "/"] | ||
MAINTAINER Keyu Tao <taoky@ustclug.org> | ||
ADD ["sync.sh", "prepare.sh", "stackage.hs", "/"] | ||
RUN bash /prepare.sh && rm prepare.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
本地调试可参考 stackage-stack 分支:<https://github.com/ustclug/ustcmirror-images/tree/stackage-stack/stackage> |
Oops, something went wrong.