<commit_before># Base image is Ubuntu 14.04
FROM ubuntu:14.04

# Create software directory
RUN mkdir /software

# Update apt-get
RUN apt-get update

# Locale setup
RUN apt-get install -y language-pack-en-base
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV LC_ALL en_US.UTF-8

## Install Clang 3.4
RUN apt-get install -y clang-3.4

## Install Boost libraries
RUN apt-get install -y libboost1.55-all-dev

## Download and Build nanomsg
## TODO cleanup after this build
RUN apt-get install -y wget
RUN apt-get install make
RUN wget http://download.nanomsg.org/nanomsg-0.3-beta.tar.gz
RUN tar -xvzf nanomsg-0.3-beta.tar.gz
RUN mkdir /software/nanomsg
RUN ./nanomsg-0.3-beta/configure --prefix /software/nanomsg && make && make install  

# Install Git
RUN apt-get install -y git

# Clone K3-Core from Git
RUN mkdir /k3
RUN mkdir /k3/K3-Core
RUN git clone https://github.com/DaMSL/K3-Core.git /k3/K3-Core

# Clone K3-Driver from Git
RUN mkdir /k3/K3-Driver
RUN git clone https://github.com/DaMSL/K3-Driver.git /k3/K3-Driver

# Clone K3-Mosaic from Git
RUN mkdir /k3/K3-Mosaic
RUN git clone https://github.com/DaMSL/K3-Mosaic.git /k3/K3-Mosaic

# Install GHC and cabal
RUN apt-get install -y zlib1g-dev libreadline6 libreadline6-dev libncurses5-dev
RUN apt-get install -y happy ghc cabal-install
RUN cabal update
RUN cabal install cabal-install
ENV PATH /.cabal/bin/:$PATH

# Install ocaml
RUN apt-get install -y ocaml opam camlp4-extra

### Build K3-Core
WORKDIR /k3/K3-Core
RUN rm -rf /.ghc
RUN cabal sandbox init
RUN cabal install --only-dependencies --disable-documentation

### Build K3-Driver
WORKDIR /k3/K3-Driver
RUN cabal sandbox init
RUN cabal sandbox add-source /k3/K3-Core
RUN cabal install --only-dependencies --disable-documentation
RUN cabal install K3-Core --reinstall --ghc-options="-DDEBUG" --disable-documentation
RUN cabal configure
RUN cabal build

### Build K3-Mosaic
WORKDIR /k3/K3-Mosaic
RUN ./build_opt.sh
RUN ./build_utils.sh

# Expose Ports
EXPOSE 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009

# Install Vim
RUN apt-get install -y vim

# Install decent vim configuration
RUN mkdir /.vim
RUN git clone https://github.com/tpope/vim-pathogen.git /.vim
RUN echo 'execute pathogen#infect() | syntax on | filetype plugin indent on' > /.vimrc
RUN git clone https://github.com/tpope/vim-sensible.git /.vim/bundle

ADD ../pull-run.sh /
RUN chmod +x /pull-run.sh<commit_msg>Removed ADD instruction copying from outside the docker context<commit_after># Base image is Ubuntu 14.04
FROM ubuntu:14.04

# Create software directory
RUN mkdir /software

# Update apt-get
RUN apt-get update

# Locale setup
RUN apt-get install -y language-pack-en-base
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV LC_ALL en_US.UTF-8

## Install Clang 3.4
RUN apt-get install -y clang-3.4

## Install Boost libraries
RUN apt-get install -y libboost1.55-all-dev

## Download and Build nanomsg
## TODO cleanup after this build
RUN apt-get install -y wget
RUN apt-get install make
RUN wget http://download.nanomsg.org/nanomsg-0.3-beta.tar.gz
RUN tar -xvzf nanomsg-0.3-beta.tar.gz
RUN mkdir /software/nanomsg
RUN ./nanomsg-0.3-beta/configure --prefix /software/nanomsg && make && make install  

# Install Git
RUN apt-get install -y git

# Clone K3-Core from Git
RUN mkdir /k3
RUN mkdir /k3/K3-Core
RUN git clone https://github.com/DaMSL/K3-Core.git /k3/K3-Core

# Clone K3-Driver from Git
RUN mkdir /k3/K3-Driver
RUN git clone https://github.com/DaMSL/K3-Driver.git /k3/K3-Driver

# Clone K3-Mosaic from Git
RUN mkdir /k3/K3-Mosaic
RUN git clone https://github.com/DaMSL/K3-Mosaic.git /k3/K3-Mosaic

# Install GHC and cabal
RUN apt-get install -y zlib1g-dev libreadline6 libreadline6-dev libncurses5-dev
RUN apt-get install -y happy ghc cabal-install
RUN cabal update
RUN cabal install cabal-install
ENV PATH /.cabal/bin/:$PATH

# Install ocaml
RUN apt-get install -y ocaml opam camlp4-extra

### Build K3-Core
WORKDIR /k3/K3-Core
RUN rm -rf /.ghc
RUN cabal sandbox init
RUN cabal install --only-dependencies --disable-documentation

### Build K3-Driver
WORKDIR /k3/K3-Driver
RUN cabal sandbox init
RUN cabal sandbox add-source /k3/K3-Core
RUN cabal install --only-dependencies --disable-documentation
RUN cabal install K3-Core --reinstall --ghc-options="-DDEBUG" --disable-documentation
RUN cabal configure
RUN cabal build

### Build K3-Mosaic
WORKDIR /k3/K3-Mosaic
RUN ./build_opt.sh
RUN ./build_utils.sh

# Expose Ports
EXPOSE 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009

# Install Vim
RUN apt-get install -y vim

# Install decent vim configuration
RUN mkdir /.vim
RUN git clone https://github.com/tpope/vim-pathogen.git /.vim
RUN echo 'execute pathogen#infect() | syntax on | filetype plugin indent on' > /.vimrc
RUN git clone https://github.com/tpope/vim-sensible.git /.vim/bundle
{'fraction_non_alphanumeric': 0.10530714584203928, 'fraction_numerical': 0.041788549937317176, 'mean_word_length': 3.6028846153846152, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4128607', 'n_tokens_mistral': 1895, 'n_tokens_neox': 1753, 'n_words': 561}