-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: prepare.sh is not needed anymore
Signed-off-by: Jian Zeng <[email protected]>
- Loading branch information
Showing
6 changed files
with
48 additions
and
44 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 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,4 +1,22 @@ | ||
FROM ustcmirror/base:debian | ||
LABEL maintainer="Kai Ma <[email protected]>" | ||
ADD ["sync.sh", "prepare.sh", "ghcupsync.hs", "/"] | ||
RUN bash /prepare.sh && rm prepare.sh | ||
ADD ["sync.sh", "ghcupsync.hs", "/"] | ||
RUN --mount=type=cache,sharing=locked,target=/var/cache/apt \ | ||
--mount=type=cache,sharing=locked,target=/var/lib/apt <<EOF | ||
#!/bin/bash | ||
|
||
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 curl $HASKELL_DEPS $HASKELL_KEEP | ||
|
||
# compile with Haskell language extensions | ||
ghc -O2 -XScopedTypeVariables -XOverloadedStrings ghcupsync.hs | ||
|
||
rm -rf /ghcupsync.* && apt-get purge -y --auto-remove $HASKELL_DEPS | ||
|
||
EOF |
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,5 +1,20 @@ | ||
FROM ustcmirror/base:debian | ||
LABEL maintainer="Jiahao Li <[email protected]>" | ||
LABEL maintainer="Keyu Tao <[email protected]>" | ||
ADD ["sync.sh", "prepare.sh", "stackage.hs", "/"] | ||
RUN bash /prepare.sh && rm prepare.sh | ||
ADD ["sync.sh", "stackage.hs", "/"] | ||
RUN --mount=type=cache,sharing=locked,target=/var/cache/apt \ | ||
--mount=type=cache,sharing=locked,target=/var/lib/apt <<EOF | ||
#!/bin/bash | ||
|
||
HASKELL_DEPS="ghc libghc-yaml-dev libghc-process-extras-dev \ | ||
libghc-aeson-dev libghc-split-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 $HASKELL_DEPS $HASKELL_KEEP | ||
ghc -O2 stackage.hs | ||
|
||
rm -rf stackage.* && apt-get purge --auto-remove -y $HASKELL_DEPS | ||
|
||
EOF |
This file was deleted.
Oops, something went wrong.