Skip to content

Instantly share code, notes, and snippets.

@quyse
Created January 9, 2016 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quyse/4441543374b3102f7fd5 to your computer and use it in GitHub Desktop.
Save quyse/4441543374b3102f7fd5 to your computer and use it in GitHub Desktop.
GHCJS boot on Arch Linux in Docker for stack issue #1496
FROM base/archlinux
# necessary installations
RUN pacman -Sy --noconfirm archlinux-keyring
RUN pacman -Su --noconfirm
RUN pacman-db-upgrade
RUN pacman -S --noconfirm autoconf gcc make nodejs alex happy git sudo binutils fakeroot
# libtinfo from AUR
RUN git clone https://aur.archlinux.org/libtinfo.git && chmod a+rw libtinfo && cd libtinfo && sudo -u nobody makepkg -s && pacman -U --noconfirm libtinfo-*
# get stack
RUN curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C /usr/bin '*/stack'
# following installations doesn't require root
RUN useradd -m rrr
USER rrr
WORKDIR /home/rrr
# install ghcjs
COPY ghcjs-setup.yaml ghcjs-setup.yaml
RUN stack setup --stack-yaml ghcjs-setup.yaml
resolver: lts-3.19
compiler: ghcjs-0.2.0.20151029_ghc-7.10.2
compiler-check: match-exact
setup-info:
ghcjs:
source:
ghcjs-0.2.0.20151029_ghc-7.10.2:
url: "https://github.com/nrolland/ghcjs/releases/download/v0.2.0.20151029/ghcjs-0.2.0.20151029.tar.gz"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment