<commit_before># -*- mode: sh -*-
# vi: set ft=sh :

##
# Ruby and SSH container
#
# Docker version 0.10.0
#
FROM ubuntu:12.04
MAINTAINER <NAME> "http://twitter.com/albertogg"

RUN echo "debconf debconf/frontend select Teletype" | debconf-set-selections &&\
    apt-get -y update --fix-missing &&\
    apt-get -y install python-software-properties &&\
    apt-add-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe" &&\
    add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-updates main universe" &&\
    add-apt-repository -y ppa:nginx/stable &&\
    apt-get -y update --fix-missing

RUN apt-get -y install build-essential python-dev git-core curl wget \
                       libxslt-dev zlib1g-dev libcurl4-openssl-dev \
                       libssl-dev libyaml-dev libtool \
                       libxml2-dev gawk \
                       pngcrush imagemagick libreadline-dev \
                       nginx language-pack-en sudo cron vim \
                       psmisc rsyslog &&\
    dpkg-divert --local --rename --add /sbin/initctl &&\
    sh -c "test -f /sbin/initctl || ln -s /bin/true /sbin/initctl" &&\
    apt-get -y install haproxy openssh-server

RUN apt-get -y install runit monit &&\
    apt-get clean &&\
    dpkg-reconfigure locales &&\
    locale-gen en_US.UTF-8 &&\
    /usr/sbin/update-locale LANG=en_US.UTF-8

RUN mkdir /src && cd /src && git clone https://github.com/sstephenson/ruby-build.git &&\
    cd /src/ruby-build && ./install.sh &&\
    cd / && rm -rf /src/ruby-build && ruby-build 2.0.0-p451 /usr/local

RUN echo 'gem: --no-document' >> /usr/local/etc/gemrc &&\
    gem update --system &&\
    gem install bundler

ENV LC_ALL en_US.UTF-8<commit_msg>Update the base image entirely<commit_after># -*- mode: sh -*-
# vi: set ft=sh :

##
# Ruby and Nginx container based on the discourse base container.
# - Ruby 2.0.0-p481
# - Nginx 1.6.0 stable
#
# Docker version 0.11.1
#
FROM ubuntu:12.04
MAINTAINER <NAME> "http://twitter.com/albertogg"

RUN echo "debconf debconf/frontend select Teletype" | debconf-set-selections &&\
    apt-get -y update --fix-missing &&\
    apt-get -y install python-software-properties &&\
    apt-add-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe" &&\
    add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-updates main universe" &&\
    add-apt-repository -y ppa:nginx/stable &&\
    apt-get -y update --fix-missing &&\
    apt-mark hold initscripts &&\
    apt-get -y upgrade

RUN apt-get -y install build-essential python-dev git-core curl wget \
                       libxslt-dev zlib1g-dev libcurl4-openssl-dev \
                       libssl-dev libyaml-dev libtool \
                       libxml2-dev gawk \
                       pngcrush imagemagick libreadline-dev \
                       nginx language-pack-en sudo cron vim \
                       psmisc rsyslog &&\
    dpkg-divert --local --rename --add /sbin/initctl &&\
    sh -c "test -f /sbin/initctl || ln -s /bin/true /sbin/initctl"

RUN apt-get -y install haproxy openssh-server \
                       runit monit &&\
    apt-get clean

RUN dpkg-reconfigure locales &&\
    locale-gen en_US.UTF-8 &&\
    /usr/sbin/update-locale LANG=en_US.UTF-8

RUN echo 'gem: --no-document' >> /usr/local/etc/gemrc &&\
    mkdir /src && cd /src && git clone https://github.com/sstephenson/ruby-build.git &&\
    cd /src/ruby-build && ./install.sh &&\
    cd / && rm -rf /src/ruby-build && ruby-build 2.0.0-p481 /usr/local &&\
    gem update --system &&\
    gem install bundler
{'fraction_non_alphanumeric': 0.14289662797125482, 'fraction_numerical': 0.013266998341625208, 'mean_word_length': 2.090520922288642, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '773985', 'n_tokens_mistral': 1316, 'n_tokens_neox': 1214, 'n_words': 306}