anchor.diff:  # vi: set ft=sh :
   
   ##
  -# Ruby and SSH container
  +# Ruby and Nginx container based on the discourse base container.
  +# - Ruby 2.0.0-p481
  +# - Nginx 1.6.0 stable
   #
  -# Docker version 0.10.0
  +# Docker version 0.11.1
   #
   FROM ubuntu:12.04
   MAINTAINER Alberto Grespan "http://twitter.com/albertogg"
  
positive.code:     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 \
  
negative.code:                        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
  