<commit_before># mount the GHC source code into /home/ghc
#
#    sudo docker run --rm -i -t -v `pwd`:/home/ghc gregweber/ghc-haskell-dev /bin/bash
#
# There is one final setup step to run once you have the image up:
#
#    arc install-certificate
#
# This places a .arcrc file (which is ignored) in your repo
# arc is a tool to interface with phabricator, the main ghc development tool.
# When you have a patch ready, run:
#
#    arc diff
#
# Look here on how to kick off your first build:
# https://ghc.haskell.org/trac/ghc/wiki/Building/Hacking

FROM debian:testing
MAINTAINER <NAME>

RUN apt-get update && apt-get install -y \
  # Needed for adding the PPA key
  gnupg \
  gpgv

## add ppa for ubuntu trusty haskell packages
# from darinmorrison/haskell
# from http://downloads.haskell.org/debian/
RUN  apt-key adv --keyserver hkp://keyserver.ubuntu.com:80  --recv-keys BA3CBA3FFE22B574 \
  && echo 'deb     http://downloads.haskell.org/debian stretch main' >> /etc/apt/sources.list.d/haskell.list

RUN apt-get update && apt-get install -y \

  # from darinmorrison/haskell, related to ncurses, not sure if it is needed
  libtinfo5 \

  # mentioned on the GHC wiki
  autoconf automake libtool make libgmp-dev ncurses-dev g++ python bzip2 ca-certificates \
  llvm \
  llvm-6.0 \

  xz-utils \

  ## install minimal set of haskell packages
  # from darinmorrison/haskell
  ghc-8.4.4 \
  alex \
  cabal-install-2.4 \
  happy \

  # development conveniences
  sudo xutils-dev \

  # For document generation
  xsltproc docbook-xsl \
  python-sphinx \
  texinfo \

  # Needed for testing current HEAD
  python3 \

  # Needed for running nofib
  time \

  # arc tool
  # It makes a lot more sense to run this from your host
  git php-cli php-curl libssl-dev vim-tiny \
  && apt-get clean

RUN mkdir /php && cd /php \
  && git clone https://github.com/phacility/libphutil.git \
  && git clone https://github.com/phacility/arcanist.git

# for building the ghc manual
#RUN apt-get update \
# && apt-get install -y dblatex docbook-xsl docbook-utils \
# && apt-get clean

ENV LANG     C.UTF-8
ENV LC_ALL   C.UTF-8
ENV LANGUAGE C.UTF-8

RUN useradd -m -d /home/ghc -s /bin/bash ghc
RUN echo "ghc ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/ghc && chmod 0440 /etc/sudoers.d/ghc
ENV HOME /home/ghc
WORKDIR /home/ghc
USER ghc<commit_msg>Remove empty continuation lines in Dockerfile<commit_after># mount the GHC source code into /home/ghc
#
#    sudo docker run --rm -i -t -v `pwd`:/home/ghc gregweber/ghc-haskell-dev /bin/bash
#
# There is one final setup step to run once you have the image up:
#
#    arc install-certificate
#
# This places a .arcrc file (which is ignored) in your repo
# arc is a tool to interface with phabricator, the main ghc development tool.
# When you have a patch ready, run:
#
#    arc diff
#
# Look here on how to kick off your first build:
# https://ghc.haskell.org/trac/ghc/wiki/Building/Hacking

FROM debian:testing
MAINTAINER <NAME>

RUN apt-get update && apt-get install -y \
  # Needed for adding the PPA key
  gnupg \
  gpgv

## add ppa for ubuntu trusty haskell packages
# from darinmorrison/haskell
# from http://downloads.haskell.org/debian/
RUN  apt-key adv --keyserver hkp://keyserver.ubuntu.com:80  --recv-keys BA3CBA3FFE22B574 \
  && echo 'deb     http://downloads.haskell.org/debian stretch main' >> /etc/apt/sources.list.d/haskell.list

RUN apt-get update && apt-get install -y \
  \
  # from darinmorrison/haskell, related to ncurses, not sure if it is needed
  libtinfo5 \
  \
  # mentioned on the GHC wiki
  autoconf automake libtool make libgmp-dev ncurses-dev g++ python bzip2 ca-certificates \
  llvm \
  llvm-6.0 \
  \
  xz-utils \
  \
  ## install minimal set of haskell packages
  # from darinmorrison/haskell
  ghc-8.4.4 \
  alex \
  cabal-install-2.4 \
  happy \
  \
  # development conveniences
  sudo xutils-dev \
  \
  # For document generation
  xsltproc docbook-xsl \
  python-sphinx \
  texinfo \
  \
  # Needed for testing current HEAD
  python3 \
  \
  # Needed for running nofib
  time \
  \
  # arc tool
  # It makes a lot more sense to run this from your host
  git php-cli php-curl libssl-dev vim-tiny \
  && apt-get clean

RUN mkdir /php && cd /php \
  && git clone https://github.com/phacility/libphutil.git \
  && git clone https://github.com/phacility/arcanist.git

# for building the ghc manual
#RUN apt-get update \
# && apt-get install -y dblatex docbook-xsl docbook-utils \
# && apt-get clean

ENV LANG     C.UTF-8
ENV LC_ALL   C.UTF-8
ENV LANGUAGE C.UTF-8

RUN useradd -m -d /home/ghc -s /bin/bash ghc
RUN echo "ghc ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/ghc && chmod 0440 /etc/sudoers.d/ghc
ENV HOME /home/ghc
WORKDIR /home/ghc
USER ghc
{'fraction_non_alphanumeric': 0.10652774824580055, 'fraction_numerical': 0.011056772273017223, 'mean_word_length': 2.8462796402289454, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1107834', 'n_tokens_mistral': 1825, 'n_tokens_neox': 1713, 'n_words': 548}