Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Ship a subset of Stackage LTS packages in the pre-built Docker image #355

Merged
merged 25 commits into from
Dec 3, 2019
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ jobs:
- checkout
- run:
name: Make Docker image
no_output_timeout: 5h
command: |
git submodule update --init --recursive
export ASTERIUS_REV=$(git rev-parse --short HEAD)
Expand Down
5 changes: 3 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.git
.stack-work
**/.git
**/.stack-work
**/stack.yaml.lock
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ COPY inline-js/inline-js-core /root/asterius/inline-js/inline-js-core
COPY npm-utils /root/asterius/npm-utils
COPY wabt /root/asterius/wabt
COPY wasm-toolkit /root/asterius/wasm-toolkit
COPY lts.sh /root/asterius/lts.sh
COPY stack.yaml /root/asterius/stack.yaml
ENV \
DEBIAN_FRONTEND=noninteractive \
Expand Down Expand Up @@ -45,6 +46,10 @@ RUN \
curl -L https://downloads.haskell.org/~cabal/cabal-install-latest/cabal-install-3.0.0.0-x86_64-unknown-linux.tar.xz | tar xJ -C /root/.local/bin 'cabal' && \
stack --no-terminal install asterius && \
stack --no-terminal exec ahc-boot && \
export ASTERIUS_LIB_DIR=$(stack path --local-install-root)/share/x86_64-linux-ghc-8.6.5/asterius-0.0.1/.boot/asterius_lib && \
cp ghc-toolkit/boot-libs/cabal.config . && \
stack --no-terminal exec ./lts.sh && \
rm cabal.config && \
apt purge -y \
automake \
cmake \
Expand Down
Loading